[PATCH 6.7 378/713] tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function