* [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe.
@ 2020-05-25 5:50 wu000273
2020-05-26 9:43 ` Mark Brown
2020-05-26 16:45 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: wu000273 @ 2020-05-25 5:50 UTC (permalink / raw)
To: lgirdwood
Cc: broonie, perex, tiwai, p.zabel, tglx, lsa-devel, linux-kernel,
kjlu, wu000273
From: Qiushi Wu <wu000273@umn.edu>
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>
---
sound/soc/img/img-i2s-in.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/img/img-i2s-in.c b/sound/soc/img/img-i2s-in.c
index a495d1050d49..e30b66b94bf6 100644
--- a/sound/soc/img/img-i2s-in.c
+++ b/sound/soc/img/img-i2s-in.c
@@ -482,6 +482,7 @@ static int img_i2s_in_probe(struct platform_device *pdev)
if (IS_ERR(rst)) {
if (PTR_ERR(rst) == -EPROBE_DEFER) {
ret = -EPROBE_DEFER;
+ pm_runtime_put(&pdev->dev);
goto err_suspend;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe.
2020-05-25 5:50 [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe wu000273
@ 2020-05-26 9:43 ` Mark Brown
2020-05-26 16:45 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-05-26 9:43 UTC (permalink / raw)
To: wu000273
Cc: lgirdwood, perex, tiwai, p.zabel, tglx, lsa-devel, linux-kernel, kjlu
[-- Attachment #1: Type: text/plain, Size: 699 bytes --]
On Mon, May 25, 2020 at 12:50:11AM -0500, wu000273@umn.edu wrote:
> From: Qiushi Wu <wu000273@umn.edu>
>
> 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.
This isn't a treewide change, this is a patch for a single driver...
Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe.
2020-05-25 5:50 [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe wu000273
2020-05-26 9:43 ` Mark Brown
@ 2020-05-26 16:45 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2020-05-26 16:45 UTC (permalink / raw)
To: lgirdwood, wu000273
Cc: linux-kernel, tglx, tiwai, kjlu, lsa-devel, perex, p.zabel
On Mon, 25 May 2020 00:50:11 -0500, wu000273@umn.edu wrote:
> 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.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: fix incomplete error-handling in img_i2s_in_probe.
commit: 25bf943e4e7b47282bd86ae7d39e039217ebb007
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-26 16:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25 5:50 [PATCH] treewide: fix incomplete error-handling in img_i2s_in_probe wu000273
2020-05-26 9:43 ` Mark Brown
2020-05-26 16:45 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).