patch-2.4.9 linux/net/rose/af_rose.c
Next file: linux/net/sched/sch_tbf.c
Previous file: linux/net/netrom/af_netrom.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Wed Aug 15 01:22:18 2001
-  Orig file: 
v2.4.8/linux/net/rose/af_rose.c
-  Orig date: 
Thu Apr 19 08:38:50 2001
diff -u --recursive --new-file v2.4.8/linux/net/rose/af_rose.c linux/net/rose/af_rose.c
@@ -508,7 +508,7 @@
 			return -ENOPROTOOPT;
 	}
 
-	len = min(len, sizeof(int));
+	len = min(unsigned int, len, sizeof(int));
 
 	if (put_user(len, optlen))
 		return -EFAULT;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)