]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2020 11:24:59 +0000 (12:24 +0100)
commita8b4d2034fd495710459956887628832b0de4fef
treec59b8456fadd0ae5fa0159ceabd80e07419eb240
parenta0945db310d026977dc39c079d5f5392bd8a83f3
ASoC: SOF: core: fix error return code in sof_probe_continue()

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

Fixes: 0aafc1dc38e7 ("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>
sound/soc/sof/core.c