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

From: David Miller
Date: Mon Jun 24 2019 - 11:58:01 EST


From: Antoine Tenart <antoine.tenart@xxxxxxxxxxx>
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 IS_ERR_OR_NULL.
>
> Fixes: 541ddc66d665 ("net: macb: support of_get_mac_address new ERR_PTR error")
> Signed-off-by: Antoine Tenart <antoine.tenart@xxxxxxxxxxx>

Applied, thanks.