[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201001.184218.21920326424555147.davem@davemloft.net>
Date: Thu, 01 Oct 2020 18:42:18 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: petko.manolov@...sulko.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: usb: pegasus: Proper error handing when setting
pegasus' MAC address
From: Petko Manolov <petko.manolov@...sulko.com>
Date: Tue, 29 Sep 2020 14:40:39 +0300
> -static void set_ethernet_addr(pegasus_t *pegasus)
> +static int set_ethernet_addr(pegasus_t *pegasus)
> {
You change this to return an 'int' but no callers were updated to check it.
Furthermore, failure to probe a MAC address can be resolved by
choosing a random MAC address. This handling is preferrable because
it allows the interface to still come up successfully.
Powered by blists - more mailing lists