[media] s5p-fimc: Don't allocate fimc-capture video device dynamically
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Thu, 26 Jul 2012 10:15:42 +0000 (07:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 17:56:08 +0000 (14:56 -0300)
commit31d34d9bb30fef7aee1800ec63255083dbcdfa83
treed5bf85722b9d26e646e77198ed8916cbd7811037
parent1bcd7041947287206065af584e15fc4f41113da7
[media] s5p-fimc: Don't allocate fimc-capture video device dynamically

This fixes potential invalid pointer de-reference, when
media_entity_cleanup() is called before video device
is unregistered.

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-capture.c
drivers/media/platform/s5p-fimc/fimc-core.h
drivers/media/platform/s5p-fimc/fimc-mdevice.c
drivers/media/platform/s5p-fimc/fimc-mdevice.h
drivers/media/platform/s5p-fimc/fimc-reg.c