Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459828

[PATCH -next] ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()

From Wei Yongjun <weiyj.lk@gmail.com>
Newsgroups linux.kernel
Subject [PATCH -next] ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()
Date 2016-08-10 22:30 +0200
Message-ID <s4Iit-1wh-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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")
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
---
 sound/soc/soc-topology.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sound/soc/soc-topology.c b/sound/soc/soc-topology.c
index 05a18f6..a9e83a2 100644
--- a/sound/soc/soc-topology.c
+++ b/sound/soc/soc-topology.c
@@ -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;
 	}

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH -next] ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create() Wei Yongjun <weiyj.lk@gmail.com> - 2016-08-10 22:30 +0200
  Applied "ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-08-12 14:40 +0200

csiph-web