mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
ASoC: SOF: core: fix error return code in sof_probe_continue()
[ Upstream commit7d8785bc7a] Fix to return negative error code -ENOMEM from the IPC init error handling case instead of 0, as done elsewhere in this function. Fixes:c16211d622("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
79790202d4
commit
6544b95bd7
@@ -372,6 +372,7 @@ static int sof_probe_continue(struct snd_sof_dev *sdev)
|
||||
/* init the IPC */
|
||||
sdev->ipc = snd_sof_ipc_init(sdev);
|
||||
if (!sdev->ipc) {
|
||||
ret = -ENOMEM;
|
||||
dev_err(sdev->dev, "error: failed to init DSP IPC %d\n", ret);
|
||||
goto ipc_err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user