]> Git Repo - linux.git/commit
ASoC: tegra: Fix reference count leaks.
authorQiushi Wu <[email protected]>
Sat, 13 Jun 2020 20:44:19 +0000 (15:44 -0500)
committerMark Brown <[email protected]>
Wed, 17 Jun 2020 13:04:02 +0000 (14:04 +0100)
commitdeca195383a6085be62cb453079e03e04d618d6e
tree53ff154c1c3aa4d02f8f43429439abc7b9c8bc32
parent668b1508cf9e3dfd1bfad4f4906d1eaeae0a4015
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 <[email protected]>
Reviewed-by: Jon Hunter <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/tegra/tegra30_ahub.c
sound/soc/tegra/tegra30_i2s.c
This page took 0.053053 seconds and 4 git commands to generate.