ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()
commit8ae3ea48dfupstream. Fix to return error code -ENOMEM instead of 0 when failed to create widget, as done elsewhere in this function. Fixes:8a9782346d("ASoC: topology: Add topology core") Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1ea1d49d16
commit
41b4b00e6d
@@ -1484,6 +1484,7 @@ widget:
|
||||
if (widget == NULL) {
|
||||
dev_err(tplg->dev, "ASoC: failed to create widget %s controls\n",
|
||||
w->name);
|
||||
ret = -ENOMEM;
|
||||
goto hdr_err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user