patch-2.4.9 linux/net/ipx/af_ipx.c

Next file: linux/net/irda/af_irda.c
Previous file: linux/net/ipv6/route.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.8/linux/net/ipx/af_ipx.c linux/net/ipx/af_ipx.c
@@ -1890,7 +1890,7 @@
 	if (get_user(len, optlen))
 		goto out;
 
-	len = min(len, sizeof(int));
+	len = min(unsigned int, len, sizeof(int));
 	ret = -EINVAL;
 	if(len < 0)
 		goto out;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)