[media] s5k6aa: off by one in s5k6aa_enum_frame_interval()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:33:06 +0000 (05:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:54:09 +0000 (04:54 -0300)
commit174e60adf4bfb849672b3b2afdd3cfd6e65d1d3d
tree427eef27ea6cc9c8de8d721c7f117fd2ed0b9287
parentd345a5e59b0af5919f4d7f2a0d4c8dcae657e9d1
[media] s5k6aa: off by one in s5k6aa_enum_frame_interval()

The check is off by one so we could read one space past the end of the
array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/s5k6aa.c