summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2023-06-17 18:55:00 +0300
committerDavid S. Miller <davem@davemloft.net>2023-06-18 19:33:05 +0300
commitc938ab4da0eb1620ae3243b0b24c572ddfc318fc (patch)
treea6982b5b06fb0a12a1a7e1a71c937004aac974d8 /tools/perf/scripts/python/export-to-sqlite.py
parenteb09fc2d14163c0c217846cfabec3d0cce7c8f8c (diff)
downloadlinux-c938ab4da0eb1620ae3243b0b24c572ddfc318fc.tar.xz
net: phy: Manual remove LEDs to ensure correct ordering
If the core is left to remove the LEDs via devm_, it is performed too late, after the PHY driver is removed from the PHY. This results in dereferencing a NULL pointer when the LED core tries to turn the LED off before destroying the LED. Manually unregister the LEDs at a safe point in phy_remove. Cc: stable@vger.kernel.org Reported-by: Florian Fainelli <f.fainelli@gmail.com> Suggested-by: Florian Fainelli <f.fainelli@gmail.com> Fixes: 01e5b728e9e4 ("net: phy: Add a binding for PHY LEDs") Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions