aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorAndrew Lunn <[email protected]>2023-06-17 17:55:00 +0200
committerDavid S. Miller <[email protected]>2023-06-18 17:33:05 +0100
commitc938ab4da0eb1620ae3243b0b24c572ddfc318fc (patch)
treea6982b5b06fb0a12a1a7e1a71c937004aac974d8 /scripts/bpf_doc.py
parenteb09fc2d14163c0c217846cfabec3d0cce7c8f8c (diff)
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: [email protected] Reported-by: Florian Fainelli <[email protected]> Suggested-by: Florian Fainelli <[email protected]> Fixes: 01e5b728e9e4 ("net: phy: Add a binding for PHY LEDs") Signed-off-by: Andrew Lunn <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions