mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
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>
This commit is contained in:
parent
5e6efe88c5
commit
e2c57f839c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue