kernel-fxtec-pro1x/sound/soc/rockchip
Qiushi Wu df58889128 ASoC: rockchip: Fix a reference count leak.
[ Upstream commit f141a422159a199f4c8dedb7e0df55b3b2cf16cd ]

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 23:17:11 -04:00
..
Kconfig
Makefile
rk3288_hdmi_analog.c
rk3399_gru_sound.c
rockchip_i2s.c ASoc: rockchip: i2s: Fix RPM imbalance 2019-11-10 11:27:16 +01:00
rockchip_i2s.h
rockchip_max98090.c
rockchip_pcm.c
rockchip_pcm.h
rockchip_pdm.c ASoC: rockchip: Fix a reference count leak. 2020-06-30 23:17:11 -04:00
rockchip_pdm.h
rockchip_rt5645.c
rockchip_spdif.c
rockchip_spdif.h