Re: [PATCH net] net: phy: marvell10g: fix null pointer dereference

2020-08-11 Thread David Miller
From: Marek BehĂșn Date: Mon, 10 Aug 2020 17:01:58 +0200 > Commit c3e302edca24 ("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 fun

[PATCH net] net: phy: marvell10g: fix null pointer dereference

2020-08-10 Thread Marek BehĂșn
Commit c3e302edca24 ("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 sub