Skip to content

net: phy: Fix PHY unbind crash

Florian Fainelli netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: phy: Fix PHY unbind crashdrivers/net/phy/phy_device.c+2 -00 replies
2/2net: phy: Check phydev->drvdrivers/net/phy/phy.c drivers/net/phy/phy_device.c include/linux/phy.h+28 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] net: phy: Fix PHY unbind crash

Hi David,

This fixes crashes when the PHY driver is no longer bound to the device.

There is still a fair amount of work to be done to get the unbind -> bind sequent to result in a functional state, but that will be net-next material.

These two problems existed for as long as PHYLIB as been around.

Thanks!

Florian Fainelli (2):
net: phy: Fix PHY unbind crash
net: phy: Check phydev->drv

 drivers/net/phy/phy.c        | 26 ++++++++++++++++++++++----
 drivers/net/phy/phy_device.c |  8 +++++---
 include/linux/phy.h          |  3 +++
 3 files changed, 30 insertions(+), 7 deletions(-)
Signature · 1 line
2.9.3