[media] exynos4-is: fimc-lite: Index out of bounds if no pixelcode found
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 13 Oct 2013 10:50:40 +0000 (07:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 4 Dec 2013 17:52:43 +0000 (15:52 -0200)
commitb1fbe051c1ff608eaab3d46cf38be03ac374294b
tree78720e6e683d00e6e5df0f55fa273f8c5b75589b
parente1163236f5214e3447f1132a355a26db3db7d9f3
[media] exynos4-is: fimc-lite: Index out of bounds if no pixelcode found

In case no valid pixelcode is found, an i of -1 after the loop is out of
bounds for the array.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/exynos4-is/fimc-lite-reg.c