linux/drivers/net/ethernet
Johan Hovold 7614975037 net: bcmgenet: fix OF child-node lookup
[ Upstream commit d397dbe606 ]

Use the new of_get_compatible_child() helper to lookup the mdio child
node instead of using of_find_compatible_node(), which searches the
entire tree from a given start node and thus can return an unrelated
(i.e. non-child) node.

This also addresses a potential use-after-free (e.g. after probe
deferral) as the tree-wide helper drops a reference to its first
argument (i.e. the node of the device being probed).

Fixes: aa09677cba ("net: bcmgenet: add MDIO routines")
Cc: stable <stable@vger.kernel.org>     # 3.15
Cc: David S. Miller <davem@davemloft.net>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-01 09:46:36 +01:00
..
3com net: prevent ISA drivers from building on PPC32 2018-09-05 09:18:35 +02:00
8390
adaptec net: adaptec: starfire: add checks for dma mapping errors 2017-06-17 06:39:37 +02:00
adi
aeroflex
agere
allwinner
alteon
altera
amd net: prevent ISA drivers from building on PPC32 2018-09-05 09:18:35 +02:00
apm drivers: net: xgene: Fix hardware checksum setting 2018-03-22 09:23:20 +01:00
apple
arc net: ethernet: arc: Fix a potential memory leak if an optional regulator is deferred 2018-03-31 18:12:33 +02:00
atheros atl1c: reserve min skb headroom 2018-09-05 09:18:35 +02:00
aurora net: ethernet: nb8800: Handle all 4 RGMII modes identically 2017-08-11 09:08:53 -07:00
broadcom net: bcmgenet: fix OF child-node lookup 2018-12-01 09:46:36 +01:00
brocade bna: ethtool: Avoid reading past end of buffer 2018-11-21 09:27:41 +01:00
cadence net: macb: disable scatter-gather for macb on sama5d3 2018-10-20 09:52:33 +02:00
calxeda
cavium net: cavium: liquidio: fix up "Avoid dma_unmap_single on uninitialized ndata" 2018-04-08 11:52:02 +02:00
chelsio net: cxgb3_main: fix a missing-check bug 2018-11-10 07:41:34 -08:00
cirrus net: prevent ISA drivers from building on PPC32 2018-09-05 09:18:35 +02:00
cisco enic: do not call enic_change_mtu in enic_probe 2018-09-15 09:40:40 +02:00
davicom
dec drivers/net: fix eisa_driver probe section mismatch 2018-02-25 11:03:44 +01:00
dlink
emulex be2net: fix status check in be_cmd_pmac_add() 2017-07-05 14:37:20 +02:00
ezchip
faraday net/faraday: Add missing include of of.h 2018-03-22 09:23:23 +01:00
freescale gianfar: Fix Rx byte accounting for ndev stats 2018-05-30 07:49:02 +02:00
fujitsu
hisilicon net: hns: fix length and page_offset overflow when CONFIG_ARM64_64K_PAGES 2018-10-10 08:52:09 +02:00
hp net: hp100: fix always-true check for link up state 2018-09-29 03:08:52 -07:00
i825xx
ibm net: emac: fix reset timeout with AR8035 phy 2018-04-13 19:50:20 +02:00
intel e1000: fix race condition between e1000_down() and e1000_watchdog 2018-11-21 09:27:41 +01:00
marvell net: mvpp2: Extract the correct ethtype from the skb for tx csum offload 2018-10-20 09:52:36 +02:00
mellanox net/mlx5e: Correctly handle RSS indirection table when changing number of channels 2018-11-10 07:41:38 -08:00
micrel
microchip
moxa
myricom
natsemi net/sonic: Use dma_mapping_error() 2018-07-03 11:21:24 +02:00
neterion net: vxge: avoid unused function warnings 2017-01-12 11:22:51 +01:00
nuvoton
nvidia
nxp
octeon
oki-semi
packetengines
pasemi
qlogic net: qla3xxx: Remove overflowing shift statement 2018-11-21 09:27:31 +01:00
qualcomm net: qca_spi: Fix log level if probe fails 2018-08-24 13:27:00 +02:00
rdc
realtek r8169: fix NAPI handling under high load 2018-11-10 07:41:41 -08:00
renesas sh_eth: Use platform device for printing before register_netdev() 2018-04-13 19:50:08 +02:00
rocker
samsung
seeq
sfc sfc: don't warn on successful change of MAC 2017-12-20 10:04:57 +01:00
sgi
silan
sis
smsc smc91x: avoid self-comparison warning 2016-11-10 16:36:36 +01:00
stmicro net: stmmac: Fix stmmac_mdio_reset() when building stmmac as modules 2018-11-10 07:41:41 -08:00
sun net: sungem: fix rx checksum support 2018-07-22 14:25:52 +02:00
synopsys
tehuti
ti drivers: net: cpsw: fix segfault in case of bad phy-handle 2018-09-26 08:35:10 +02:00
tile
toshiba
tundra
via
wiznet
xilinx net: axienet: Fix double deregister of mdio 2018-09-05 09:18:35 +02:00
xircom
xscale
dnet.c
dnet.h
ec_bhf.c
ethoc.c net: ethoc: enable NAPI before poll may be scheduled 2017-06-14 13:16:19 +02:00
fealnx.c fealnx: Fix building error on MIPS 2017-11-24 08:32:24 +01:00
jme.c
jme.h
Kconfig
korina.c net: korina: Fix NAPI versus resources freeing 2017-07-05 14:37:17 +02:00
lantiq_etop.c
Makefile
netx-eth.c