]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 15 Jun 2021 10:10:42 +0000 (13:10 +0300)
commit77a0989baa427dbd242c5784d05a53ca3d197d43
treeb7aed8a1ddbba971f5928d20e17fba95c74dc5b9
parent7557dfde1bd1251793fade20a52014f1105c1012
ssb: Fix error return code in ssb_bus_scan()

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
drivers/ssb/scan.c