diff options
author | Angus Clark <angus.clark@st.com> | 2011-10-26 19:43:08 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-10-28 03:17:11 (GMT) |
commit | e2c57f839c63f452b4704e048c8db9cf669ed410 (patch) | |
tree | 8e3553d961db5fc5de5e83ba5469b0e0cbcbdfc3 | |
parent | 5e6efe88c54ad79353666f5371b5b97c0e16111e (diff) | |
download | linux-e2c57f839c63f452b4704e048c8db9cf669ed410.tar.xz |
stmmac: fix NULL pointer dereference in capabilities fixup (v2)
Signed-off-by: Angus Clark <angus.clark@st.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index fcdd5a2..003ab56 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -325,7 +325,7 @@ static int stmmac_init_phy(struct net_device *dev) (interface == PHY_INTERFACE_MODE_RMII))) { phydev->supported &= (PHY_BASIC_FEATURES | SUPPORTED_Pause | SUPPORTED_Asym_Pause); - priv->phydev->advertising = priv->phydev->supported; + phydev->advertising = phydev->supported; } /* |