[PATCH 6.1 224/451] tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function