]> git.hungrycats.org Git - linux/commitdiff
[PATCH] add missing clipping for zr36067
authorDave Jones <davej@codemonkey.org.uk>
Mon, 25 Nov 2002 10:40:31 +0000 (02:40 -0800)
committerDave Jones <davej@codemonkey.org.uk>
Mon, 25 Nov 2002 10:40:31 +0000 (02:40 -0800)
from 2.4

drivers/media/video/zr36067.c

index bf452b4c7fde523e9a2e73302ead8891ddc1ee4e..7c7c4aab1d926b518e90910495403041b07bd1fc 100644 (file)
@@ -3758,7 +3758,7 @@ static int do_zoran_ioctl(struct zoran *zr, unsigned int cmd,
                         *   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 =