media: platform: fix some double free in meson-ge2d and mtk-jpeg and s5p-mfc
authorHangyu Hua <hbh25y@gmail.com>
Tue, 16 Aug 2022 08:58:19 +0000 (10:58 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 30 Aug 2022 13:20:49 +0000 (15:20 +0200)
commitc65c3f3a2cbf21ed429d9b9c725bdb5dc6abf4cf
tree502f73f65359682cbd2371bb5b5a8c613f7cb84d
parent61c2698ee60630c6a7d2e99850fa81ff6450270a
media: platform: fix some double free in meson-ge2d and mtk-jpeg and s5p-mfc

video_unregister_device will release device internally. There is no need to
call video_device_release after video_unregister_device.

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/amlogic/meson-ge2d/ge2d.c
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c