linux/sound/soc/rockchip
Qiushi Wu 9e89c2d5da ASoC: rockchip: Fix a reference count leak.
[ Upstream commit f141a42215 ]

Calling pm_runtime_get_sync increments the counter even in case of
failure, causing incorrect ref count if pm_runtime_put is not called in
error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails.

Fixes: fc05a5b222 ("ASoC: rockchip: add support for pdm controller")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20200613205158.27296-1-wu000273@umn.edu
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-30 15:36:57 -04:00
..
Kconfig Linux 5.2-rc6 2019-06-26 12:39:34 +01:00
Makefile ASoC: rockchip: add config for rockchip dmaengine pcm register 2018-06-18 12:54:38 +01:00
rk3288_hdmi_analog.c ASoC: rockchip: rk3288_hdmi_analog: consider CPU-Platform possibility 2019-06-28 15:14:20 +01:00
rk3399_gru_sound.c drivers: Introduce device lookup variants by of_node 2019-07-30 13:07:41 +02:00
rockchip_i2s.c ASoc: rockchip: i2s: Fix RPM imbalance 2019-10-03 14:32:13 +01:00
rockchip_i2s.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
rockchip_max98090.c ASoC: rockchip: rockchip_max98090: Enable SHDN to fix headset detection 2019-10-28 13:11:21 +00:00
rockchip_pcm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
rockchip_pcm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
rockchip_pdm.c ASoC: rockchip: Fix a reference count leak. 2020-06-30 15:36:57 -04:00
rockchip_pdm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
rockchip_rt5645.c ASoC: rockchip: rockchip_rt5645: consider CPU-Platform possibility 2019-06-28 15:15:01 +01:00
rockchip_spdif.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
rockchip_spdif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00