linux_dsm_epyc7002/drivers/net/ethernet/freescale
Uwe Kleine-König 6f2c9bd85e net: gianfar: fix reference counting for phy_node
The line before the changed if condition is:

	priv->phy_node = of_parse_phandle(np, "phy-handle", 0);

. If this call succeeds priv->phy_node must not be overwritten in the if
block; otherwise the reference to the node returned by of_parse_phandle
is lost. So add a check that the if block isn't executed in this case.

Furthermore in the fixed phy case no reference is aquired for phy_node
resulting in an of_node_put without holding a reference. To fix that,
get a reference on the MAC dt node.

Fixes: be40364544 ("gianfar: use the new fixed PHY helpers")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-08-07 16:02:58 -07:00
..
fs_enet fs_enet: use the new fixed PHY helpers 2014-05-22 15:16:43 -04:00
fec_main.c fec: Simplify the PM related hooks 2014-07-24 23:26:18 -07:00
fec_mpc52xx_phy.c
fec_mpc52xx.c
fec_mpc52xx.h
fec_ptp.c
fec.h net: fec: replace delayed work with standard work 2014-07-08 20:57:46 -07:00
fsl_pq_mdio.c
gianfar_ethtool.c gianfar: Check if phydev present on ethtool -A 2014-04-24 13:36:16 -04:00
gianfar_ptp.c
gianfar.c net: gianfar: fix reference counting for phy_node 2014-08-07 16:02:58 -07:00
gianfar.h
Kconfig net/fsl: xgmac_mdio is dependent on OF_MDIO 2014-06-11 15:50:59 -07:00
Makefile
ucc_geth_ethtool.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
ucc_geth.c ucc_geth: remove unnecessary break after return 2014-07-20 21:30:19 -07:00
ucc_geth.h
xgmac_mdio.c net/fsl: Add format length modifier to avoid negative values 2014-07-30 19:58:09 -07:00