Re: [PATCH net] net: macb: do not copy the mac address if NULL

2019-06-24 Thread David Miller
From: Antoine Tenart Date: Fri, 21 Jun 2019 17:26:35 +0200 > This patch fixes the MAC address setup in the probe. The MAC address > retrieved using of_get_mac_address was checked for not containing an > error, but it may also be NULL which wasn't tested. Fix it by replacing > IS_ERR with

Re: [PATCH net] net: macb: do not copy the mac address if NULL

2019-06-24 Thread Nicolas.Ferre
On 21/06/2019 at 17:26, Antoine Tenart wrote: > This patch fixes the MAC address setup in the probe. The MAC address > retrieved using of_get_mac_address was checked for not containing an > error, but it may also be NULL which wasn't tested. Fix it by replacing > IS_ERR with IS_ERR_OR_NULL. > >

[PATCH net] net: macb: do not copy the mac address if NULL

2019-06-21 Thread Antoine Tenart
This patch fixes the MAC address setup in the probe. The MAC address retrieved using of_get_mac_address was checked for not containing an error, but it may also be NULL which wasn't tested. Fix it by replacing IS_ERR with IS_ERR_OR_NULL. Fixes: 541ddc66d665 ("net: macb: support of_get_mac_address