V4L/DVB: omap24xxcam: potential buffer overflow
authorDan Carpenter <error27@gmail.com>
Wed, 10 Mar 2010 10:57:03 +0000 (07:57 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 6 May 2010 22:18:58 +0000 (19:18 -0300)
commit2132deff694765bc2e6c7ac84c6b30dab0775256
treed91bb367c9150c8aaec45af5257ecb1aa6b145aa
parent722154e4cacf015161efe60009ae9be23d492296
V4L/DVB: omap24xxcam: potential buffer overflow

The previous loop goes until last == VIDEO_MAX_FRAME, so this could
potentially go one past the end of the loop.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Sakari Ailus <sakari.ailus@maxwell.research.nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap24xxcam.c