aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/s5p-fimc/fimc-lite.h
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2012-07-26 07:13:08 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-01 14:55:46 -0300
commit1bcd7041947287206065af584e15fc4f41113da7 (patch)
tree58483b0d18370ab7487684b2ffb9852bc9dd191c /drivers/media/platform/s5p-fimc/fimc-lite.h
parent[media] s5p-fimc: Enable FIMC-LITE driver only for SOC_EXYNOS4x12 (diff)
downloadlinux-dev-1bcd7041947287206065af584e15fc4f41113da7.tar.xz
linux-dev-1bcd7041947287206065af584e15fc4f41113da7.zip
[media] s5p-fimc: Don't allocate fimc-lite video device structure dynamically
This fixes potential invalid pointer de-reference, when media_entity_cleanup() is called after video_unregister_device, and video device structure memory is already 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/platform/s5p-fimc/fimc-lite.h')
-rw-r--r--drivers/media/platform/s5p-fimc/fimc-lite.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/s5p-fimc/fimc-lite.h b/drivers/media/platform/s5p-fimc/fimc-lite.h
index 44424eee81d8..9944dd36ec7c 100644
--- a/drivers/media/platform/s5p-fimc/fimc-lite.h
+++ b/drivers/media/platform/s5p-fimc/fimc-lite.h
@@ -132,7 +132,7 @@ struct fimc_lite {
struct platform_device *pdev;
struct flite_variant *variant;
struct v4l2_device *v4l2_dev;
- struct video_device *vfd;
+ struct video_device vfd;
struct v4l2_fh fh;
struct vb2_alloc_ctx *alloc_ctx;
struct v4l2_subdev subdev;