[PATCH 5.15 144/317] tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function