Skip to content

Commit

Permalink
stmmac: fix NULL pointer dereference in capabilities fixup (v2)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Angus Clark authored and David S. Miller committed Oct 28, 2011
1 parent 5e6efe8 commit e2c57f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit e2c57f8

Please sign in to comment.