diff options
| author | Heiner Kallweit <[email protected]> | 2024-04-08 18:47:40 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2024-04-10 09:44:29 +0000 |
| commit | 19fa4f2a85d777a8052e869c1b892a2f7556569d (patch) | |
| tree | cc8ac9890224038eaff2f787f082e6d0679c47a5 /net/bluetooth/hci_request.c | |
| parent | pds_core: Fix pdsc_check_pci_health function to use work thread (diff) | |
| download | kernel-19fa4f2a85d777a8052e869c1b892a2f7556569d.tar.gz kernel-19fa4f2a85d777a8052e869c1b892a2f7556569d.zip | |
r8169: fix LED-related deadlock on module removal
Binding devm_led_classdev_register() to the netdev is problematic
because on module removal we get a RTNL-related deadlock. Fix this
by avoiding the device-managed LED functions.
Note: We can safely call led_classdev_unregister() for a LED even
if registering it failed, because led_classdev_unregister() detects
this and is a no-op in this case.
Fixes: 18764b883e15 ("r8169: add support for LED's on RTL8168/RTL8101")
Cc: [email protected]
Reported-by: Lukas Wunner <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions
