[media] s5p-fimc: Prevent oops when i2c adapter is not available
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 11 Feb 2011 15:33:06 +0000 (12:33 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:54:14 +0000 (04:54 -0300)
commita0f8caefaf3295721ef00415c7d63ec10af253ab
tree205e220beaa968f127937777ab51d9076963d12d
parent8ec737ffccd7fab629e28427b4d0581ce62ffedd
[media] s5p-fimc: Prevent oops when i2c adapter is not available

Prevent invalid pointer dereference on error path.

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/video/s5p-fimc/fimc-capture.c