Skip to contentSkip to conversation

ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()

PATCH In review Wei Yongjun 2 participants 2 messages Aug 10, 2016 – Aug 12, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()

Fix to return error code -ENOMEM instead of 0 when failed to create widget, as done elsewhere in this function.

Fixes 8a9782346dcc ("ASoC: topology: Add topology core")
---
 sound/soc/soc-topology.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/soc-topology.c +1 -0
index 05a18f6..a9e83a2 100644
@@ -1476,6 +1476,7 @@ widget:
 	if (widget == NULL) {
 		dev_err(tplg->dev, "ASoC: failed to create widget %s controls\n",
 			w->name);
+		ret = -ENOMEM;
 		goto hdr_err;
 	}
maintainer
#1 lore raw

Applied "ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()" to the asoc tree

The patch

ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

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

Quoted 1 line

From 8ae3ea48df0d746b663057cf0b972a18d0777b7b Mon Sep 17 00:00:00 2001

From: Wei Yongjun <[email protected]>
Date: Wed, 10 Aug 2016 13:43:12 +0000
Subject: [PATCH] ASoC: topology: Fix error return code in
soc_tplg_dapm_widget_create()

Fix to return error code -ENOMEM instead of 0 when failed to create widget, as done elsewhere in this function.

Fixes 8a9782346dcc ("ASoC: topology: Add topology core")
---
 sound/soc/soc-topology.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/soc-topology.c +1 -0
index 05a18f68bfd0..a9e83a2dd91c 100644
@@ -1476,6 +1476,7 @@ widget:
 	if (widget == NULL) {
 		dev_err(tplg->dev, "ASoC: failed to create widget %s controls\n",
 			w->name);
+		ret = -ENOMEM;
 		goto hdr_err;
 	}
 
Signature · 1 line
2.8.1