[media] s5p-fimc: Prevent potential buffer overflow
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 5 Dec 2012 16:40:04 +0000 (13:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Jan 2013 11:24:43 +0000 (09:24 -0200)
commita8697ec8c7f3ab7331bc3210c3b89563356f8de5
tree69ed5eb14aee6605c5e739b8181e7ae173a60e53
parent6612545ffb3c14ccb5fa265992cc1b40db3ff463
[media] s5p-fimc: Prevent potential buffer overflow

Replace the hard coded csi_sensors[] array size with a relevant
constant to make sure we don't iterate beyond the actual array.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-mdevice.c