patch-2.4.7 linux/drivers/media/video/zr36120.c
Next file: linux/drivers/message/fusion/Config.in
Previous file: linux/drivers/media/video/zr36067.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Jul 16 15:13:32 2001
-  Orig file: 
v2.4.6/linux/drivers/media/video/zr36120.c
-  Orig date: 
Tue Jul  3 17:08:20 2001
diff -u --recursive --new-file v2.4.6/linux/drivers/media/video/zr36120.c linux/drivers/media/video/zr36120.c
@@ -1189,7 +1189,7 @@
 		if (vw.flags)
 			return -EINVAL;
 
-		if (vw.clipcount>256)
+		if (vw.clipcount <0 || vw.clipcount>256)
 			return -EDOM;   /* Too many! */
 
 		/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)