[media] s5p-fimc: Don't allocate fimc-lite video device structure dynamically
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 26 Jul 2012 10:13:08 +0000 (07:13 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 17:55:46 +0000 (14:55 -0300)
commit1bcd7041947287206065af584e15fc4f41113da7
tree58483b0d18370ab7487684b2ffb9852bc9dd191c
parent8cf5e2a97626a03a78be80ea6d235f038c6ad16b
[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>
drivers/media/platform/s5p-fimc/fimc-lite-reg.c
drivers/media/platform/s5p-fimc/fimc-lite.c
drivers/media/platform/s5p-fimc/fimc-lite.h
drivers/media/platform/s5p-fimc/fimc-mdevice.c