[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>
Showing
- drivers/media/platform/s5p-fimc/fimc-capture.c 9 additions, 19 deletionsdrivers/media/platform/s5p-fimc/fimc-capture.c
- drivers/media/platform/s5p-fimc/fimc-core.h 1 addition, 1 deletiondrivers/media/platform/s5p-fimc/fimc-core.h
- drivers/media/platform/s5p-fimc/fimc-mdevice.c 1 addition, 1 deletiondrivers/media/platform/s5p-fimc/fimc-mdevice.c
- drivers/media/platform/s5p-fimc/fimc-mdevice.h 2 additions, 4 deletionsdrivers/media/platform/s5p-fimc/fimc-mdevice.h
- drivers/media/platform/s5p-fimc/fimc-reg.c 3 additions, 3 deletionsdrivers/media/platform/s5p-fimc/fimc-reg.c
Loading
Please register or sign in to comment