[PATCH v3] media: rkvdec: Handle interrupts without a current context
Nicolas Dufresne
nicolas.dufresne at collabora.com
Fri Nov 20 15:08:22 PST 2026
Le vendredi 13 novembre 2026 à 14:24 +0400, Alex Kazinsky a écrit :
> 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.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Fixes: f9c7b7deeffd ("media: rkvdec: Support per-variant interrupt handler")
> Signed-off-by: Alex Kazinsky <a.kazinsky at ideco.ru>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne at collabora.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/linux-rockchip/attachments/20261120/d5b6132f/attachment.sig>
More information about the Linux-rockchip
mailing list