linux/sound/soc/tegra
Qiushi Wu deca195383
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>
2020-06-17 14:04:02 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile ASoC: Add missing newline at end of file 2019-06-17 16:18:13 +01:00
tegra20_ac97.c ASoC: soc-core: remove bus_control 2020-01-21 17:07:08 +00:00
tegra20_ac97.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
tegra20_das.c ASoC: tegra20_das: use devm_platform_ioremap_resource() to simplify code 2019-07-31 12:03:32 +01:00
tegra20_das.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
tegra20_i2s.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
tegra20_i2s.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
tegra20_spdif.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
tegra20_spdif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
tegra30_ahub.c ASoC: tegra: Fix reference count leaks. 2020-06-17 14:04:02 +01:00
tegra30_ahub.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
tegra30_i2s.c ASoC: tegra: Fix reference count leaks. 2020-06-17 14:04:02 +01:00
tegra30_i2s.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
tegra_alc5632.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
tegra_asoc_utils.c ASoC: tegra: Enable audio mclk during tegra_asoc_utils_init() 2020-04-21 16:53:15 +02:00
tegra_asoc_utils.h ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
tegra_max98090.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
tegra_pcm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
tegra_pcm.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 336 2019-06-05 17:37:07 +02:00
tegra_rt5640.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
tegra_rt5677.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
tegra_sgtl5000.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
tegra_wm8753.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
tegra_wm8903.c ASoC: tegra: tegra_wm8903: Use devm_snd_soc_register_card() 2020-04-28 16:40:36 +01:00
tegra_wm9712.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00
trimslice.c ASoC: tegra: Use device managed resource APIs to get the clock 2020-04-21 16:53:12 +02:00