patch-2.4.20 linux-2.4.20/drivers/media/video/zoran_procfs.c

Next file: linux-2.4.20/drivers/media/video/zr36067.c
Previous file: linux-2.4.20/drivers/media/video/tvmixer.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/media/video/zoran_procfs.c linux-2.4.20/drivers/media/video/zoran_procfs.c
@@ -110,6 +110,9 @@
 	struct zoran *zr;
 
 	zr = (struct zoran *) data;
+	
+	if(count > 32768)		/* Stupidity filter */
+		count = 32768;
 
 	string = sp = vmalloc(count + 1);
 	if (!string) {

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