[PATCH 6.7 381/713] udp: fix incorrect parameter validation in the udp_lib_getsockopt() function