summaryrefslogtreecommitdiff
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-06-13 15:44:19 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-03 11:22:24 +0200
commit63d5985db8888ba226511e95ebf03b813bcfa8ba (patch)
tree56d952c4a373751bb9a04d13d7af11ac161d8c02 /sound/soc/soc-core.c
parent9b5b926bfcd5d96d987a73ca97e4a55ad1f7b4a7 (diff)
downloadlinux-rt-63d5985db8888ba226511e95ebf03b813bcfa8ba.tar.gz
ASoC: tegra: Fix reference count leaks.
[ Upstream commit deca195383a6085be62cb453079e03e04d618d6e ] 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. Signed-off-by: Qiushi Wu <wu000273@umn.edu> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Link: https://lore.kernel.org/r/20200613204422.24484-1-wu000273@umn.edu Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound/soc/soc-core.c')
0 files changed, 0 insertions, 0 deletions