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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:35:45 +0000 (12:35 +0200)
commit5c32cbf6ccea1625a0c2b92d6dcc34f529ba755c
treecd0a2b7c93f4f5e9dbf5dd73d41e7b24f3ddbba6
parent6f21976095c1e92454ab030976f95f40d652351b
media: platform: fix some double free in meson-ge2d and mtk-jpeg and s5p-mfc

[ Upstream commit c65c3f3a2cbf21ed429d9b9c725bdb5dc6abf4cf ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/meson/ge2d/ge2d.c
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c
drivers/media/platform/s5p-mfc/s5p_mfc.c