[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201002075742.GA1197@carbon>
Date: Fri, 2 Oct 2020 10:57:42 +0300
From: Petko Manolov <petko.manolov@...sulko.com>
To: David Miller <davem@...emloft.net>
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: usb: pegasus: Proper error handing when setting
pegasus' MAC address
On 20-10-01 18:42:18, David Miller wrote:
> 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.
Thanks for looking into this. V2 already sent.
Powered by blists - more mailing lists