diff options
| author | Chaoyi Chen <chaoyi.chen@rock-chips.com> | 2026-08-14 10:24:52 +0800 |
|---|---|---|
| committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2026-11-16 11:13:37 +0100 |
| commit | 5c4aeafcac8c46be7b08b86795baa64453eb68aa (patch) | |
| tree | b4b4bb6bddce6e18a7e515d2b9e7e106e6a652a4 /rust/kernel/alloc/kvec/errors.rs | |
| parent | 97e48904cbdb32e4a66bd60d26ce45657f58bc46 (diff) | |
accel/rocket: Fix the extra iommu_group_get call in rocket_job_handle_irq
The rocket attaches the IOMMU group in rocket_job_run() and detaches it
in rocket_job_handle_irq(). Calling iommu_group_get() in
rocket_job_handle_irq() causes the reference count to increase
unexpectedly. And this causes rocket_core_fini() to fail to release the
IOMMU group, leading to a resource leak.
Fixes: 0810d5ad88a1 ("accel/rocket: Add job submission IOCTL")
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
Reviewed-by: Tomeu Vizoso <tomeu@tomeuvizoso.net>
[tomeu: Fixes points at the commit that added the call]
Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net>
Link: https://patch.msgid.link/20260814022453.437-4-kernel@airkyi.com
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
