aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/socionext/sni_ave.c
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-05-06 23:24:46 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-07 12:22:47 -0700
commitda48be3373438224da1a5832cb7ffce1f1752a75 (patch)
tree7967fac3890f76195303c85af63e9dfd0e4d56f1 /drivers/net/ethernet/socionext/sni_ave.c
parentnet: dsa: support of_get_mac_address new ERR_PTR error (diff)
downloadlinux-dev-da48be3373438224da1a5832cb7ffce1f1752a75.tar.xz
linux-dev-da48be3373438224da1a5832cb7ffce1f1752a75.zip
staging: octeon-ethernet: Fix of_get_mac_address ERR_PTR check
Commit 284eb160681c ("staging: octeon-ethernet: support of_get_mac_address new ERR_PTR error") has introduced checking for ERR_PTR encoded error value from of_get_mac_address with IS_ERR macro, which is not sufficient in this case, as the mac variable is set to NULL initialy and if the kernel is compiled without DT support this NULL would get passed to IS_ERR, which would lead to the wrong decision and would pass that NULL pointer and invalid MAC address further. Fixes: 284eb160681c ("staging: octeon-ethernet: support of_get_mac_address new ERR_PTR error") Signed-off-by: Petr Štetiar <ynezz@true.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/socionext/sni_ave.c')
0 files changed, 0 insertions, 0 deletions