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>
Thu, 25 Jun 2020 13:32:59 +0000 (15:32 +0200)
commit04ed30388c9f9aec4608c5bc5938d023597a5772
tree15b44d16aabe2cfd388e4c9cd0edae66b34b05a4
parentbad579b96bf1929964d5446adc32b627b4962ae8
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