Re: [PATCH] media: imx-jpeg: finish the job on device_run() error paths
From: Frank . Li
Date: Mon Jul 27 2026 - 10:33:00 EST
From: Frank Li <Frank.Li@xxxxxxx>
On Wed, 24 Jun 2026 00:32:08 +0000, Fan Wu wrote:
> mxc_jpeg_device_run() returns early through a shared "end" label on several
> error paths (no free slot, mxc_jpeg_alloc_slot_data() failure, or missing
> buffers or queue data), and none of them calls v4l2_m2m_job_finish().
> Since the delayed work is queued only after the hardware is started, those
> paths neither finish the job directly nor queue timeout work that could
> finish it later. The job is left with TRANS_RUNNING set, so the
> wait_event() in v4l2_m2m_cancel_job() (reached from v4l2_m2m_ctx_release()
> at close) waits indefinitely and the close hangs.
>
> [...]
Applied, thanks!
[1/1] media: imx-jpeg: finish the job on device_run() error paths
commit: 84cf16d021a20ff35ec50833af531deabea71992
Best regards,
--
Frank Li <Frank.Li@xxxxxxx>