Commit 92c329d
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: 541ddc6 ("net: macb: support of_get_mac_address new ERR_PTR error")
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>1 parent 5b42ec4 commit 92c329d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4177 | 4177 | | |
4178 | 4178 | | |
4179 | 4179 | | |
4180 | | - | |
| 4180 | + | |
4181 | 4181 | | |
4182 | 4182 | | |
4183 | 4183 | | |
| |||
0 commit comments