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

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)