Search Linux Wireless

Re: [PATCH 1/1] ssb: Fix error return code in ssb_bus_scan()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux