[PATCH 5.4 077/183] tcp: fix incorrect parameter validation in the do_tcp_getsockopt() function