ALSA: ppc: fix error return code in snd_pmac_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 16 Jun 2021 02:11:21 +0000 (10:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Jul 2021 14:17:50 +0000 (16:17 +0200)
commit03885d1cce8462525fa01877f0b9614a68f757f0
treebfc8171e5f8bc0b9d9c98eb1143b3c7b93d71486
parenta7587d3b26cac10c9a13358ed4d2fcaa4d534aeb
ALSA: ppc: fix error return code in snd_pmac_probe()

[ Upstream commit 80b9c1be567c3c6bbe0d4b290af578e630485b5d ]

If snd_pmac_tumbler_init() or snd_pmac_tumbler_post_init() fails,
snd_pmac_probe() need return error code.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210616021121.1991502-1-yangyingliang@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/ppc/powermac.c