[PATCH 6.6 338/638] net/x25: fix incorrect parameter validation in the x25_getsockopt() function