Re: [PATCH RFC 27/28] dsa: slave: Don't reference NULL pointer during phy_disconnect

2015-12-23 Thread Florian Fainelli
Le 23/12/2015 04:56, Andrew Lunn a écrit : > When the phy is disconnected, the parent pointer to the netdev it was > attached to is set to NULL. The code then tries to suspend the phy, > but dsa_slave_fixed_link_update needs the parent pointer to determine > which switch the phy is connected to.

[PATCH RFC 27/28] dsa: slave: Don't reference NULL pointer during phy_disconnect

2015-12-23 Thread Andrew Lunn
When the phy is disconnected, the parent pointer to the netdev it was attached to is set to NULL. The code then tries to suspend the phy, but dsa_slave_fixed_link_update needs the parent pointer to determine which switch the phy is connected to. So it dereferenced a NULL pointer. Check for this