summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorJorge Ramirez-Ortiz <jorge.ramirez@oss.qualcomm.com>2025-08-22 23:41:51 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-28 16:21:35 +0200
commit8226db2309e20928d04b33707289f82c00ca71ed (patch)
treefbfb4f1da93fc52206c901346f50a33ae901541d /drivers/media
parentee4d13f5407cbdf1216cc258f45492075713889a (diff)
downloadlinux-8226db2309e20928d04b33707289f82c00ca71ed.tar.gz
linux-8226db2309e20928d04b33707289f82c00ca71ed.tar.bz2
linux-8226db2309e20928d04b33707289f82c00ca71ed.zip
media: venus: hfi: explicitly release IRQ during teardown
[ Upstream commit 640803003cd903cea73dc6a86bf6963e238e2b3f ] 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> [ Adjust context ] Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/platform/qcom/venus/hfi_venus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/qcom/venus/hfi_venus.c b/drivers/media/platform/qcom/venus/hfi_venus.c
index 33d9d50e79cd..328c257b7849 100644
--- a/drivers/media/platform/qcom/venus/hfi_venus.c
+++ b/drivers/media/platform/qcom/venus/hfi_venus.c
@@ -1608,6 +1608,7 @@ void venus_hfi_destroy(struct venus_core *core)
mutex_destroy(&hdev->lock);
kfree(hdev);
core->priv = NULL;
+ disable_irq(core->irq);
core->ops = NULL;
}