Commit d1ebfb3b authored by Dave Jones's avatar Dave Jones

[PATCH] add missing clipping for zr36067

from 2.4
parent 6e357500
...@@ -3758,7 +3758,7 @@ static int do_zoran_ioctl(struct zoran *zr, unsigned int cmd, ...@@ -3758,7 +3758,7 @@ static int do_zoran_ioctl(struct zoran *zr, unsigned int cmd,
* Write the overlay mask if clips are wanted. * Write the overlay mask if clips are wanted.
*/ */
if (vw.clipcount > 2048) if (vw.clipcount < 0 || vw.clipcount > 2048)
return -EINVAL; return -EINVAL;
if (vw.clipcount) { if (vw.clipcount) {
vcp = vcp =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment