Skip to content

Commit 77a0989

Browse files
Zhen LeiKalle Valo
authored andcommitted
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: 61e115a ("[SSB]: add Sonics Silicon Backplane bus support") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zhen Lei <[email protected]> Acked-by: Michael Büsch <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7557dfd commit 77a0989

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/ssb/scan.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
325325
if (bus->nr_devices > ARRAY_SIZE(bus->devices)) {
326326
pr_err("More than %d ssb cores found (%d)\n",
327327
SSB_MAX_NR_CORES, bus->nr_devices);
328+
err = -EINVAL;
328329
goto err_unmap;
329330
}
330331
if (bus->bustype == SSB_BUSTYPE_SSB) {

0 commit comments

Comments
 (0)