summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2026-02-18 16:21:55 -0600
committerSasha Levin <sashal@kernel.org>2026-03-12 07:10:00 -0400
commitde71b3d73e287369db8df8438e926b4d74787ce0 (patch)
tree728c6f5ec8dc59772493793cb3ee0829cf940f32 /include/net/aligned_data.h
parent94b9da7e9f958cb3d115b21eff824ecd8c3217aa (diff)
accel: ethosu: Fix job submit error clean-up refcount underflows
[ Upstream commit 150bceb3e0a4a30950279d91ea0e8cc69a736742 ] If the job submit fails before adding the job to the scheduler queue such as when the GEM buffer bounds checks fail, then doing a ethosu_job_put() results in a pm_runtime_put_autosuspend() without the corresponding pm_runtime_resume_and_get(). The dma_fence_put()'s are also unnecessary, but seem to be harmless. Split the ethosu_job_cleanup() function into 2 parts for the before and after the job is queued. Fixes: 5a5e9c0228e6 ("accel: Add Arm Ethos-U NPU driver") Reviewed-and-Tested-by: Anders Roxell <anders.roxell@linaro.org> Link: https://patch.msgid.link/20260218-ethos-fixes-v1-1-be3fa3ea9a30@kernel.org Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions