On Sat, 15 May 2021 15:29:49 +0800 Zhen Lei <thunder.leizhen@xxxxxxxxxx> wrote: > Fix to return -EINVAL from the error handling case instead of 0, as done > elsewhere in this function. > @@ -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) { Acked-by: Michael Büsch <m@xxxxxxx> -- Michael
Attachment:
pgpts2tvL5Ax8.pgp
Description: OpenPGP digital signature