]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e91887c8f40c5b0ae38ca95c6d1108c12572cd1
treed939818fb6d6e3abfd5ababdd014179b410b2cec
parent4cc211338de975b49aad75308d1f60c8d7381c86
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