ASoC: SOF: core: fix error return code in sof_probe_continue()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 9 May 2020 09:33:37 +0000 (09:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:42 +0000 (17:48 +0200)
commit63aca0b1acb939f2cfa9e087a15f8ffa49236207
treebcd68ec3ddd1c7eaa9b84f0b980648144a8d739b
parentf8fecfdd695a00a333a7fbb48e9641492b63f4b6
ASoC: SOF: core: fix error return code in sof_probe_continue()

[ Upstream commit 7d8785bc7adbb4dc5ba8ee06994107637848ded8 ]

Fix to return negative error code -ENOMEM from the IPC init error
handling case instead of 0, as done elsewhere in this function.

Fixes: c16211d6226d ("ASoC: SOF: Add Sound Open Firmware driver core")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200509093337.78897-1-weiyongjun1@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/sof/core.c