Files
erofs-linux/drivers/net/phy
Marek Behún 1b8ef1423d net: phy: marvell10g: fix null pointer dereference
Commit c3e302edca ("net: phy: marvell10g: fix temperature sensor on 2110")
added a check for PHY ID via phydev->drv->phy_id in a function which is
called by devres at a time when phydev->drv is already set to null by
phy_remove function.

This null pointer dereference can be triggered via SFP subsystem with a
SFP module containing this Marvell PHY. When the SFP interface is put
down, the SFP subsystem removes the PHY.

Fixes: c3e302edca ("net: phy: marvell10g: fix temperature sensor on 2110")
Signed-off-by: Marek Behún <[email protected]>
Cc: Maxime Chevallier <[email protected]>
Cc: Andrew Lunn <[email protected]>
Cc: Baruch Siach <[email protected]>
Cc: Russell King <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2020-08-11 15:42:23 -07:00
..
2020-07-07 12:47:10 -07:00
…
…
…
…
…
…
…
2020-06-19 20:17:15 -07:00
…
…
…
…
…