summaryrefslogtreecommitdiff
path: root/drivers/soundwire/amd_manager.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-05-17 19:37:50 +0300
committerVinod Koul <vkoul@kernel.org>2023-05-29 08:19:46 +0300
commit217f5e0de397fafc94d25a8f7baf71920bea4a04 (patch)
tree94f1626840f6938d5fd8a8d60c5c0986bba3e69b /drivers/soundwire/amd_manager.c
parent9f9914b178a7935d2d94ee3e1bf55f2b42b18528 (diff)
downloadlinux-217f5e0de397fafc94d25a8f7baf71920bea4a04.tar.xz
soundwire: debugfs: fix unbalanced pm_runtime_put()
If pm_runtime_resume_and_get() failed with -EACCES, the driver continued execution and finally called pm_runtime_put_autosuspend(). Since pm_runtime_resume_and_get() drops the usage counter on every error, this lead to double decrement of that counter. Fixes: b275bf45ba1d ("soundwire: debugfs: Switch to sdw_read_no_pm") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20230517163750.997629-2-krzysztof.kozlowski@linaro.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/amd_manager.c')
0 files changed, 0 insertions, 0 deletions