ASoC: fix incomplete error-handling in img_i2s_in_probe.
authorQiushi Wu <wu000273@umn.edu>
Mon, 25 May 2020 05:50:11 +0000 (00:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:56 +0000 (17:48 +0200)
commite1377dc0715c4b2b03f8085927fda5db37c3b5b5
tree9b38677498b95d544ccbf81169ff2a9df0cc1e38
parentad8379a6bd907e8bed907c641d9d7917a870c76e
ASoC: fix incomplete error-handling in img_i2s_in_probe.

[ Upstream commit 25bf943e4e7b47282bd86ae7d39e039217ebb007 ]

Function "pm_runtime_get_sync()" is not handled by "pm_runtime_put()"
if "PTR_ERR(rst) == -EPROBE_DEFER". Fix this issue by adding
"pm_runtime_put()" into this error path.

Fixes: f65bb92ca12e ("ASoC: img-i2s-in: Add runtime PM")
Signed-off-by: Qiushi Wu <wu000273@umn.edu>
Link: https://lore.kernel.org/r/20200525055011.31925-1-wu000273@umn.edu
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/img/img-i2s-in.c