summaryrefslogtreecommitdiff
path: root/include/net/inet_connection_sock.h
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2020-08-10 18:01:58 +0300
committerDavid S. Miller <davem@davemloft.net>2020-08-12 01:42:23 +0300
commit1b8ef1423dbfd34de2439a2db457b84480b7c8a8 (patch)
tree908ef02a628774a5239d1bc11c092c5b85e77e72 /include/net/inet_connection_sock.h
parent0f5907af39137f8183ed536aaa00f322d7365130 (diff)
downloadlinux-1b8ef1423dbfd34de2439a2db457b84480b7c8a8.tar.xz
net: phy: marvell10g: fix null pointer dereference
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 subsystem with a SFP module containing this Marvell PHY. When the SFP interface is put down, the SFP subsystem removes the PHY. Fixes: c3e302edca24 ("net: phy: marvell10g: fix temperature sensor on 2110") Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Cc: Maxime Chevallier <maxime.chevallier@bootlin.com> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_connection_sock.h')
0 files changed, 0 insertions, 0 deletions