linux/drivers/staging/octeon
Petr Štetiar da48be3373 staging: octeon-ethernet: Fix of_get_mac_address ERR_PTR check
Commit 284eb16068 ("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: 284eb16068 ("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>
2019-05-07 12:22:47 -07:00
..
ethernet-defines.h staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-mdio.c staging: octeon-ethernet: fix incorrect PHY mode 2019-03-26 05:54:18 +09:00
ethernet-mdio.h staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-mem.c staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-mem.h staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-rgmii.c staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-rx.c staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-rx.h staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-sgmii.c staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-spi.c staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-tx.c staging: octeon: fix build failure with XFRM enabled 2018-12-24 14:13:58 -08:00
ethernet-tx.h staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet-util.h staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
ethernet.c staging: octeon-ethernet: Fix of_get_mac_address ERR_PTR check 2019-05-07 12:22:47 -07:00
Kconfig
Makefile staging: octeon: remove redundant license text 2018-01-15 16:03:45 +01:00
octeon-ethernet.h staging: octeon-ethernet: fix incorrect PHY mode 2019-03-26 05:54:18 +09:00