diff options
author | Qiushi Wu <wu000273@umn.edu> | 2020-06-13 15:51:58 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-06-18 17:21:58 +0100 |
commit | f141a422159a199f4c8dedb7e0df55b3b2cf16cd (patch) | |
tree | 8125facb9630eb9ffad68503be8a1a753c37cf97 /sound/soc/fsl | |
parent | 9f7041b71a2f5defc1629368e7dbe83a9c6ea388 (diff) | |
download | lwn-f141a422159a199f4c8dedb7e0df55b3b2cf16cd.tar.gz lwn-f141a422159a199f4c8dedb7e0df55b3b2cf16cd.zip |
ASoC: rockchip: Fix a reference count leak.
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: fc05a5b22253 ("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>
Diffstat (limited to 'sound/soc/fsl')
0 files changed, 0 insertions, 0 deletions