summaryrefslogtreecommitdiff
path: root/drivers/media/video/s5p-fimc/fimc-capture.c
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2011-09-13 21:07:09 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-25 02:57:12 +0400
commit7acde02a5bf4d3c32cd197eb7ce2257e6a0e17b7 (patch)
treee21b2b83fb7dc1f9d4d8b65d685d59d521f4f4e4 /drivers/media/video/s5p-fimc/fimc-capture.c
parente067d5abdd04cbf1bed466f95682c67e2496ba42 (diff)
downloadlinux-7acde02a5bf4d3c32cd197eb7ce2257e6a0e17b7.tar.xz
[media] s5p-fimc: Fix wrong pointer dereference when unregistering sensors
After i2c_unregister_device() has been called the client object can already be freed and thus using the client pointer may lead to dereferencing freed memory. Avoid this by saving the adapter pointer for further use before i2c_unregister_device() call. 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>
Diffstat (limited to 'drivers/media/video/s5p-fimc/fimc-capture.c')
0 files changed, 0 insertions, 0 deletions