linux-stable/drivers/net/ethernet/renesas
Kangjie Lu 035a14e71f net: sh_eth: fix a missing check of of_get_phy_mode
of_get_phy_mode may fail and return a negative error code;
the fix checks the return value of of_get_phy_mode and
returns NULL of it fails.

Fixes: b356e978e9 ("sh_eth: add device tree support")
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-12 14:51:02 -07:00
..
Kconfig ethernet: renesas: convert to SPDX identifiers 2018-09-10 10:11:53 -07:00
Makefile ethernet: renesas: convert to SPDX identifiers 2018-09-10 10:11:53 -07:00
ravb.h ravb: Clean up duplex handling 2018-11-23 11:14:47 -08:00
ravb_main.c ravb: Decrease TxFIFO depth of Q3 and Q2 to one 2019-03-07 09:31:05 -08:00
ravb_ptp.c ravb: do not write 1 to reserved bits 2018-09-18 20:09:57 -07:00
sh_eth.c net: sh_eth: fix a missing check of of_get_phy_mode 2019-03-12 14:51:02 -07:00
sh_eth.h sh_eth: RX checksum offload support 2019-02-04 13:31:00 -08:00