[media] s5p-fimc: Fix potential NULL pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Thu, 25 Oct 2012 13:56:00 +0000 (10:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Oct 2012 16:42:17 +0000 (14:42 -0200)
commit8163ec0b2648c2f7e84edb969dde537ec45f1666
tree36cc2ecf1e35f96703db909e8c4279167fa9a3da
parentafd7348c60b4f5d3d4d041aa0c29a6258a476b89
[media] s5p-fimc: Fix potential NULL pointer dereference

'fimc' was being dereferenced before the NULL check.
Moved it to after the check.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-mdevice.c