V4L/DVB (5019): Fix the frame->grabstate update in read() entry point.
authorThierry MERLE <thierry.merle@free.fr>
Fri, 29 Dec 2006 23:32:08 +0000 (20:32 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 15 Jan 2007 18:25:24 +0000 (16:25 -0200)
commitc430ca1e16b2b4b30f567806c73e270caea8db1d
treed939818fb6d6e3abfd5ababdd014179b410b2cec
parenta8b3485287731978899ced11f24628c927890e78
V4L/DVB (5019): Fix the frame->grabstate update in read() entry point.

The Coverity checker spotted that in usbvision_v4l2_read(), the variable
"frmx" is never assigned any value different from -1, but it's used an
an array index in "usbvision->frame[frmx]".
Thanks to Adrian Bunk <bunk@stusta.de> for warning about that.

Signed-off-by: Thierry MERLE <thierry.merle@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/usbvision/usbvision-video.c