]> git.hungrycats.org Git - linux/commit
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>
Mon, 24 Oct 2022 07:58:23 +0000 (09:58 +0200)
commitfb98ebac0169690fe180120676a1ff79573e48c3
tree7fc8c917393939f55b0f812342ef53a7249e7e4b
parent704838040f3bdb4aa07ff4f26505a666a3defcfe
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/amlogic/meson-ge2d/ge2d.c
drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c
drivers/media/platform/samsung/s5p-mfc/s5p_mfc.c