summaryrefslogtreecommitdiff
path: root/net/tipc
diff options
context:
space:
mode:
authorAntoine Tenart <antoine.tenart@bootlin.com>2019-06-21 18:26:35 +0300
committerDavid S. Miller <davem@davemloft.net>2019-06-24 18:57:41 +0300
commit2bf4ecbcc7d837903c5967c9274f41b1ad29d530 (patch)
tree0e9d36e2d5bd5c293e46dd6e3a1f834d141d05c2 /net/tipc
parent55655e3d1197fff16a7a05088fb0e5eba50eac55 (diff)
downloadlinux-2bf4ecbcc7d837903c5967c9274f41b1ad29d530.tar.xz
net: macb: do not copy the mac address if NULL
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>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions