[PATCH v3] media: rkvdec: Handle interrupts without a current context
Nicolas Dufresne
nicolas.dufresne at collabora.com
Mon Nov 30 10:29:25 PST 2026
On Fri, 13 Nov 2026 14:24:52 +0400, Alex Kazinsky wrote:
> The watchdog can finish the current job before the threaded IRQ handler
> retrieves its context. In that case, v4l2_m2m_get_curr_priv() returns NULL,
> but the variant IRQ handlers unconditionally dereference ctx->dev.
>
> Pass only the device pointer to the variant IRQ handlers, so they can
> acknowledge interrupts without accessing the current context. Retrieve
> the context inside rkvdec_job_finish() instead. In the IRQ path, this
> happens only after successfully cancelling the watchdog, while the job
> is still active.
>
> [...]
Applied, thanks!
[1/1] media: rkvdec: Handle interrupts without a current context
commit: 16aeaa611a7af47426322dda56ef2ffd53932681
Best regards,
--
Nicolas Dufresne <nicolas.dufresne at collabora.com>
More information about the Linux-rockchip
mailing list