mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
ssb: Fix error return code in ssb_bus_scan()
[ Upstream commit77a0989baa
] Fix to return -EINVAL from the error handling case instead of 0, as done elsewhere in this function. Fixes:61e115a56d
("[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>
This commit is contained in:
parent
0418cb6b7f
commit
a05091c9b2
1 changed files with 1 additions and 0 deletions
|
@ -325,6 +325,7 @@ int ssb_bus_scan(struct ssb_bus *bus,
|
|||
if (bus->nr_devices > ARRAY_SIZE(bus->devices)) {
|
||||
pr_err("More than %d ssb cores found (%d)\n",
|
||||
SSB_MAX_NR_CORES, bus->nr_devices);
|
||||
err = -EINVAL;
|
||||
goto err_unmap;
|
||||
}
|
||||
if (bus->bustype == SSB_BUSTYPE_SSB) {
|
||||
|
|
Loading…
Reference in a new issue