]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()
authorWei Yongjun <weiyj.lk@gmail.com>
Wed, 10 Aug 2016 13:43:12 +0000 (13:43 +0000)
committerIshan Mittal <imittal@nvidia.com>
Fri, 6 Jan 2017 10:16:30 +0000 (15:46 +0530)
commit1aa562df5cf40e53cc98319a22f8475e28aeebd0
tree7849e5568e90e90fc5d8479f34a397ff3de085f9
parent5f1d6bd2fe438055291151a46d54aead2501c30e
ASoC: topology: Fix error return code in soc_tplg_dapm_widget_create()

commit 8ae3ea48df0d746b663057cf0b972a18d0777b7b upstream.

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>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-topology.c