]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: venus: hfi: explicitly release IRQ during teardown
authorJorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Thu, 19 Jun 2025 07:48:30 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:31:01 +0000 (16:31 +0200)
commit 640803003cd903cea73dc6a86bf6963e238e2b3f upstream.

Ensure the IRQ is disabled - and all pending handlers completed - before
dismantling the interrupt routing and clearing related pointers.

This prevents any possibility of the interrupt triggering after the
handler context has been invalidated.

Fixes: d96d3f30c0f2 ("[media] media: venus: hfi: add Venus HFI files")
Cc: stable@vger.kernel.org
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>
Reviewed-by: Dikshita Agarwal <quic_dikshita@quicinc.com>
Tested-by: Dikshita Agarwal <quic_dikshita@quicinc.com> # RB5
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/qcom/venus/hfi_venus.c

index 72b7cd72b31867a393f54e857872727a110b0371..8e2115279601183485af870c7a90afd2f8fd47b7 100644 (file)
@@ -1693,6 +1693,7 @@ void venus_hfi_destroy(struct venus_core *core)
        venus_interface_queues_release(hdev);
        mutex_destroy(&hdev->lock);
        kfree(hdev);
+       disable_irq(core->irq);
        core->ops = NULL;
 }