]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
accel/ivpu: Ensure rpm_runtime_put in case of engine reset/resume fail
authorKarol Wachowski <karol.wachowski@linux.intel.com>
Tue, 16 Sep 2025 08:48:09 +0000 (10:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:25 +0000 (14:02 +0100)
commit270f4eb14e0fb8c212ce57c11466da45e0a9c262
tree3a2f3233804665da5cbbf153bf59eb640cec757a
parent3bb9d125972c748a07eb65bd4e9396b06fd73e2b
accel/ivpu: Ensure rpm_runtime_put in case of engine reset/resume fail

[ Upstream commit 9f6c63285737b141ca25a619add80a96111b8b96 ]

Previously, aborting work could return early after engine reset or resume
failure, skipping the necessary runtime_put cleanup leaving the device
with incorrect reference count breaking runtime power management state.

Replace early returns with goto statements to ensure runtime_put is always
executed.

Fixes: a47e36dc5d90 ("accel/ivpu: Trigger device recovery on engine reset/resume failure")
Reviewed-by: Lizhi Hou <lizhi.hou@amd.com>
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Link: https://lore.kernel.org/r/20250916084809.850073-1-karol.wachowski@linux.intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/accel/ivpu/ivpu_job.c