patch-2.2.19 linux/net/rose/af_rose.c

Next file: linux/net/sched/cls_u32.c
Previous file: linux/net/netsyms.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.18/net/rose/af_rose.c linux/net/rose/af_rose.c
@@ -471,6 +471,9 @@
 		
 	if (get_user(len, optlen))
 		return -EFAULT;
+		
+	if (len < 0)
+		return -EINVAL;
 	
 	switch (optname) {
 		case ROSE_DEFER:

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