[media] s5p-fimc: Avoid null pointer dereference in fimc_capture_ctrls_create()
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 9 Jan 2013 18:09:55 +0000 (15:09 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 19:51:58 +0000 (17:51 -0200)
commit031f515b3d303eca80518ed9a71c79ed420b352a
tree01529d8275c75b939181759245da312b4f7841d2
parentc6c03915b630c2b4e488be4f21ab46703e31c16b
[media] s5p-fimc: Avoid null pointer dereference in fimc_capture_ctrls_create()

With presence of some faults, e.g. caused by wrong platform data or
the device tree structure the IDX_SENSOR entry in the array may be NULL,
so make sure it is not dereferenced then.

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-capture.c