diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2011-09-11 15:36:13 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-25 00:01:35 +0100 |
commit | 64c570f505a0eac4914402bb7832d019c44eabd8 (patch) | |
tree | 82513f4315bb7966be2925ccfd5be83685eaf0fb /drivers/media | |
parent | [media] s5p-fimc: Fix wrong pointer dereference when unregistering sensors (diff) | |
download | linux-64c570f505a0eac4914402bb7832d019c44eabd8.tar.xz linux-64c570f505a0eac4914402bb7832d019c44eabd8.zip |
[media] s5p-fimc: Fix error in the capture subdev deinitialization
Make sure the subdev pointer is cleared when the subdev object
has been freed.
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')
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-capture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index c8d91b0cd9bd..382dacd23133 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c @@ -1375,7 +1375,7 @@ static void fimc_destroy_capture_subdev(struct fimc_dev *fimc) media_entity_cleanup(&sd->entity); v4l2_device_unregister_subdev(sd); kfree(sd); - sd = NULL; + fimc->vid_cap.subdev = NULL; } /* Set default format at the sensor and host interface */ |