diff options
| author | GuoHan Zhao <zhaoguohan@kylinos.cn> | 2026-07-17 14:11:45 +0800 |
|---|---|---|
| committer | Rob Herring (Arm) <robh@kernel.org> | 2026-08-26 19:53:40 -0500 |
| commit | 2d2a3adc91950f9a18829dadc7317fb5180a15c5 (patch) | |
| tree | aa29f80930991bf2ed1f2ecd95bc3a5607c97eb1 /scripts/objdiff | |
| parent | 4d4be202165e832d74849b4a68e289a2a377039c (diff) | |
| download | linux-next-2d2a3adc91950f9a18829dadc7317fb5180a15c5.tar.gz linux-next-2d2a3adc91950f9a18829dadc7317fb5180a15c5.zip | |
accel/ethosu: fix job completion fence cleanup
ethosu_ioctl_submit_job() allocates done_fence before validating buffer
handles. Errors after allocation call ethosu_job_err_cleanup(), which frees
the job but leaks the uninitialized fence.
A scheduler dependency error also lets ethosu_job_run() return before
dma_fence_init(). Normal cleanup then passes a zeroed refcount to
dma_fence_put().
Release done_fence in the common cleanup path and use
dma_fence_was_initialized() to distinguish initialized fences from raw
allocations.
Fixes: 5a5e9c0228e6 ("accel: Add Arm Ethos-U NPU driver")
Cc: stable@vger.kernel.org
Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20260716065219.931088-1-zhaoguohan@kylinos.cn?part=1
Signed-off-by: GuoHan Zhao <zhaoguohan@kylinos.cn>
Link: https://patch.msgid.link/20260717061145.1478139-6-zhaoguohan@kylinos.cn
[robh: also fix goto]
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
