[PATCH 6.8 340/715] udp: fix incorrect parameter validation in the udp_lib_getsockopt() function