linux-stable/drivers/net
Kangjie Lu 9ef50cb11d net: sh_eth: fix a missing check of of_get_phy_mode
[ Upstream commit 035a14e71f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:46:25 +01:00
..
appletalk
arcnet arcnet: provide a buffer big enough to actually receive packets 2019-10-05 12:47:39 +02:00
bonding bonding: fix active-backup transition after link failure 2020-01-04 14:00:00 +01:00
caif
can can: mscan: mscan_rx_poll(): fix rx path lockup when returning from polling to irq mode 2020-01-14 20:05:41 +01:00
cris
dsa net: dsa: qca8k: Enable delay for RGMII_ID mode 2020-01-27 14:46:20 +01:00
ethernet net: sh_eth: fix a missing check of of_get_phy_mode 2020-01-27 14:46:25 +01:00
fddi
fjes fjes: fix missed check in fjes_acpi_add 2019-12-31 12:36:39 +01:00
hamradio 6pack,mkiss: fix possible deadlock 2020-01-04 14:00:05 +01:00
hippi
hyperv hv_netvsc: Fix memory leak when removing rndis device 2020-01-23 08:20:34 +01:00
ieee802154 ieee802154: ca8210: prevent memory leak 2019-10-29 09:16:54 +01:00
ipvlan
phy net: phy: fixed_phy: Fix fixed_phy not checking GPIO 2020-01-27 14:46:17 +01:00
plip
ppp ppp: Fix memory leak in ppp_write 2019-10-05 12:47:41 +02:00
slip slip: Fix use-after-free Read in slip_open 2019-12-05 15:38:16 +01:00
team team: Add vlan tx offload to hw_enc_features 2019-08-25 10:50:29 +02:00
usb r8152: add missing endpoint sanity check 2020-01-23 08:20:35 +01:00
vmxnet3
wan net/wan/fsl_ucc_hdlc: fix out of bounds write on array utdm_info 2020-01-23 08:20:34 +01:00
wimax wimax: i2400: Fix memory leak in i2400m_op_rfkill_sw_toggle 2020-01-17 19:45:43 +01:00
wireless iwlwifi: mvm: fix RSS config command 2020-01-27 14:46:16 +01:00
xen-netback net: xen-netback: fix return type of ndo_start_xmit function 2019-11-24 08:22:48 +01:00
dummy.c
eql.c
geneve.c
gtp.c gtp: fix bad unlock balance in gtp_encap_enable_socket 2020-01-12 12:12:04 +01:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c macsec: let the administrator set UP state even if lowerdev is down 2019-12-01 09:13:49 +01:00
macvlan.c macvlan: use skb_reset_mac_header() in macvlan_queue_xmit() 2020-01-23 08:20:34 +01:00
macvtap.c
Makefile
mdio.c
mii.c
netconsole.c
nlmon.c
ntb_netdev.c ntb_netdev: fix sleep time mismatch 2019-12-01 09:13:59 +01:00
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
tun.c tun: fix use-after-free when register netdev failed 2019-09-19 09:08:02 +02:00
veth.c
virtio_net.c
vrf.c vrf: mark skb for multicast or link-local as enslaved to VRF 2019-12-01 09:14:11 +01:00
vsockmon.c
vxlan.c vxlan: changelink: Fix handling of default remotes 2020-01-27 14:46:09 +01:00
xen-netfront.c xen-netfront: do not use ~0U as error return value for xennet_fill_frags() 2019-10-07 18:55:20 +02:00