From: Sylwester Nawrocki Date: Wed, 9 Jan 2013 18:09:55 +0000 (-0300) Subject: [media] s5p-fimc: Avoid null pointer dereference in fimc_capture_ctrls_create() X-Git-Tag: v3.9-rc1~93^2~132 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=031f515b3d303eca80518ed9a71c79ed420b352a;p=pandora-kernel.git [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 Signed-off-by: Kyungmin Park Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed