[PATCH 5.10 100/238] tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function