diff options
| author | 2026-05-07 22:11:44 +0000 | |
|---|---|---|
| committer | 2026-05-14 00:14:06 +0200 | |
| commit | 57cf4e8d6a57dc2ef5810f4852a23ba4c71b74bb (patch) | |
| tree | 03ac035b6c7c7666d10e1d27a4197fc7c9efd326 /include/linux/amba/ssh:/git@git.zx2c4.com | |
| parent | Linux 7.1-rc3 (diff) | |
i2c: tegra: fix pm_runtime leak on mutex_lock failure
If tegra_i2c_mutex_lock() fails, the function returns without calling
pm_runtime_put(), leaking the runtime PM reference acquired by the
preceding pm_runtime_get_sync(). This prevents the device from ever
entering runtime suspend.
Add the missing pm_runtime_put() before returning on lock failure.
Fixes: 6077cfd716fb ("i2c: tegra: Add support for SW mutex register")
Signed-off-by: Saurav Sachidanand <sauravsc@amazon.com>
Cc: <stable@vger.kernel.org> # v7.0+
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260507221145.62183-2-sauravsc@amazon.com
Diffstat (limited to 'include/linux/amba/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
