patch-2.2.19 linux/net/netrom/af_netrom.c
Next file: linux/net/netsyms.c
Previous file: linux/net/irda/af_irda.c
Back to the patch index
Back to the overall index
-  Lines: 10
 -  Date:
Sun Mar 25 11:37:41 2001
 -  Orig file: 
v2.2.18/net/netrom/af_netrom.c
 -  Orig date: 
Sun Mar 25 11:12:47 2001
 
diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/net/netrom/af_netrom.c linux/net/netrom/af_netrom.c
@@ -407,6 +407,9 @@
 	if (get_user(len, optlen))
 		return -EFAULT;
 
+	if (len < 0)
+		return -EINVAL;
+		
 	switch (optname) {
 		case NETROM_T1:
 			val = sk->protinfo.nr->t1 / HZ;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)