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 ASoC: rockchip: rk3288-hdmi-analog: Select needed codecs 2018-03-21 09:53:44 +08: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: Fix dai_name for HDMI codec 2018-03-21 09:53:21 +08:00
rk3399_gru_sound.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
rockchip_i2s.c ASoc: rockchip: i2s: Fix RPM imbalance 2019-11-10 11:27:16 +01:00
rockchip_i2s.h ASoC: rockchip: i2s: add other configurable formats 2017-06-13 21:47:40 +01:00
rockchip_max98090.c ASoC: rockchip: constify snd_soc_ops structures 2016-10-24 18:33:17 +01:00
rockchip_pcm.c ASoC: rockchip: add missing INTERLEAVED PCM attribute 2019-04-27 09:36:41 +02:00
rockchip_pcm.h ASoC: rockchip: add config for rockchip dmaengine pcm register 2018-06-18 12:54:38 +01:00
rockchip_pdm.c ASoC: rockchip: Fix a reference count leak. 2020-06-30 23:17:11 -04:00
rockchip_pdm.h ASoC: rockchip: add support for pdm controller 2017-06-13 19:09:34 +01:00
rockchip_rt5645.c ASoC: rockchip: put device_node on remove 2018-06-18 12:54:38 +01:00
rockchip_spdif.c ASoC: rockchip: disable clock on error 2017-12-06 15:25:48 +00:00
rockchip_spdif.h Merge remote-tracking branches 'asoc/fix/davinci', 'asoc/fix/es8328', 'asoc/fix/fsl-sai', 'asoc/fix/rockchip', 'asoc/fix/sgtl5000' and 'asoc/fix/wm8974' into asoc-linus 2015-12-23 00:23:27 +00:00