[PATCH 6.6 333/638] tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function