]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tegra: Fix reference count leaks.
authorQiushi Wu <wu000273@umn.edu>
Sat, 13 Jun 2020 20:44:19 +0000 (15:44 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 17 Jun 2020 13:04:02 +0000 (14:04 +0100)
commit947d7af327163cedd8d12234fe969a8c637e04a7
tree53ff154c1c3aa4d02f8f43429439abc7b9c8bc32
parenta81c1a3191657fa554dd59d8b5969af3c02743c3
ASoC: tegra: Fix reference count leaks.

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>
sound/soc/tegra/tegra30_ahub.c
sound/soc/tegra/tegra30_i2s.c