ssb: Fix error return code in ssb_bus_scan()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 15 May 2021 07:29:49 +0000 (15:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:21 +0000 (16:56 +0200)
commit80ad538a87e2ca8922fd16f0af9f8346b3c1a117
tree27d41f36d6bb43a9660a477fe0f8b56a6838bdbb
parent0147e6ccb818a271d56dd75d50ca28bb30af5628
ssb: Fix error return code in ssb_bus_scan()

[ Upstream commit 77a0989baa427dbd242c5784d05a53ca3d197d43 ]

Fix to return -EINVAL from the error handling case instead of 0, as done
elsewhere in this function.

Fixes: 61e115a56d1a ("[SSB]: add Sonics Silicon Backplane bus support")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Acked-by: Michael Büsch <m@bues.ch>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210515072949.7151-1-thunder.leizhen@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/ssb/scan.c