diff -urpN --exclude-from=/home/davej/.exclude bk-linus/drivers/media/video/zr36067.c linux-2.5/drivers/media/video/zr36067.c --- bk-linus/drivers/media/video/zr36067.c 2002-11-21 02:15:47.000000000 +0000 +++ linux-2.5/drivers/media/video/zr36067.c 2002-11-21 17:58:57.000000000 +0000 @@ -3758,7 +3762,7 @@ static int do_zoran_ioctl(struct zoran * * Write the overlay mask if clips are wanted. */ - if (vw.clipcount > 2048) + if (vw.clipcount < 0 || vw.clipcount > 2048) return -EINVAL; if (vw.clipcount) { vcp =