[media] exynos4-is: Fix potential NULL pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 2 Aug 2013 07:58:25 +0000 (04:58 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 18 Aug 2013 12:25:00 +0000 (09:25 -0300)
commit6a40cbbe471bc7b821458973a5c18ba3d97d72f4
treef03b1cc8669212673b304819e3cb2307235dcff7
parent3dbc9964b926c4ab4340df902efdb40bfe769811
[media] exynos4-is: Fix potential NULL pointer dereference

dev->of_node could be NULL. Hence check for the same and return before
dereferencing it in the subsequent error message.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/fimc-lite.c