diff options
author | Zheng Wang <zyytlz.wz@163.com> | 2023-11-06 17:48:11 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2023-11-23 15:37:57 +0300 |
commit | 38e1857933def4b3fafc28cc34ff3bbc84cad2c3 (patch) | |
tree | ea90778b0c0e1d3316a090f649a3cd81fdf2cd51 /drivers/clocksource | |
parent | 206c857dd17d4d026de85866f1b5f0969f2a109e (diff) | |
download | linux-38e1857933def4b3fafc28cc34ff3bbc84cad2c3.tar.xz |
media: mtk-jpeg: Fix timeout schedule error in mtk_jpegdec_worker.
In mtk_jpegdec_worker, if error occurs in mtk_jpeg_set_dec_dst, it
will start the timeout worker and invoke v4l2_m2m_job_finish at
the same time. This will break the logic of design for there should
be only one function to call v4l2_m2m_job_finish. But now the timeout
handler and mtk_jpegdec_worker will both invoke it.
Fix it by start the worker only if mtk_jpeg_set_dec_dst successfully
finished.
Fixes: da4ede4b7fd6 ("media: mtk-jpeg: move data/code inside CONFIG_OF blocks")
Signed-off-by: Zheng Wang <zyytlz.wz@163.com>
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Cc: stable@vger.kernel.org
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/clocksource')
0 files changed, 0 insertions, 0 deletions