[media] ov9650: off by one in ov965x_enum_frame_sizes()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:33:48 +0000 (05:33 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:54:17 +0000 (04:54 -0300)
commit6a4760ed50e4908cfd597be0d840a0cb990aff7a
tree35811f71031a3700a1d2fc00face58f89f414ffd
parent174e60adf4bfb849672b3b2afdd3cfd6e65d1d3d
[media] ov9650: off by one in ov965x_enum_frame_sizes()

The ">" should be ">=" otherwise we read one space beyond the end of the
array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/i2c/ov9650.c