diff options
author | Zheng Wang <zyytlz.wz@163.com> | 2023-11-06 15:48:09 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-11-23 13:37:04 +0100 |
commit | d8212c5c87c143ca01b78f6bf61244af07e0058e (patch) | |
tree | cba5135f3fd5cbe11c39ee15f4f53113c77e716c /drivers/media/platform/st/stm32/stm32-dcmi.c | |
parent | c411b39df8b84945e6d93e8c5ea586eaa5466f2a (diff) |
media: mtk-jpeg: Remove cancel worker in mtk_jpeg_remove to avoid the crash of multi-core JPEG devices
This patch reverts commit c677d7ae8314
("media: mtk-jpeg: Fix use after free bug due to uncanceled work").
The job_timeout_work is initialized only for
the single-core JPEG device so it will cause the crash for multi-core
JPEG devices.
Fix it by removing the cancel_delayed_work_sync function.
Fixes: c677d7ae8314 ("media: mtk-jpeg: Fix use after free bug due to uncanceled work")
Signed-off-by: Zheng Wang <zyytlz.wz@163.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/st/stm32/stm32-dcmi.c')
0 files changed, 0 insertions, 0 deletions