https://github.com/torvalds/linux
Revision 2bf4ecbcc7d837903c5967c9274f41b1ad29d530 authored by Antoine Tenart on 21 June 2019, 15:26:35 UTC, committed by David S. Miller on 24 June 2019, 15:57:41 UTC
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@bootlin.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 55655e3
Raw File
Tip revision: 2bf4ecbcc7d837903c5967c9274f41b1ad29d530 authored by Antoine Tenart on 21 June 2019, 15:26:35 UTC
net: macb: do not copy the mac address if NULL
Tip revision: 2bf4ecb
.gitattributes
*.c   diff=cpp
*.h   diff=cpp
back to top