aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2011-09-11 09:36:13 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-11-24 18:01:35 -0500
commit64c570f505a0eac4914402bb7832d019c44eabd8 (patch)
tree82513f4315bb7966be2925ccfd5be83685eaf0fb
parent7acde02a5bf4d3c32cd197eb7ce2257e6a0e17b7 (diff)
[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>
-rw-r--r--drivers/media/video/s5p-fimc/fimc-capture.c2
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 c8d91b0cd9b..382dacd2313 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)
1375 media_entity_cleanup(&sd->entity); 1375 media_entity_cleanup(&sd->entity);
1376 v4l2_device_unregister_subdev(sd); 1376 v4l2_device_unregister_subdev(sd);
1377 kfree(sd); 1377 kfree(sd);
1378 sd = NULL; 1378 fimc->vid_cap.subdev = NULL;
1379} 1379}
1380 1380
1381/* Set default format at the sensor and host interface */ 1381/* Set default format at the sensor and host interface */