Skip to content

Commit c957a0a

Browse files
ldtsgregkh
authored andcommitted
media: venus: hfi: explicitly release IRQ during teardown
commit 6408030 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: d96d3f3 ("[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>
1 parent 9e8a0dd commit c957a0a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/media/platform/qcom/venus/hfi_venus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,6 +1682,7 @@ void venus_hfi_destroy(struct venus_core *core)
16821682
venus_interface_queues_release(hdev);
16831683
mutex_destroy(&hdev->lock);
16841684
kfree(hdev);
1685+
disable_irq(core->irq);
16851686
core->ops = NULL;
16861687
}
16871688

0 commit comments

Comments
 (0)