mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
r8169: fix sleeping while holding spinlock.
[ Upstream commit ea80907ff0 ]
As device_set_wakeup_enable can now sleep, move the call to outside
the critical section.
Signed-off-by: Daniel J Blueman <daniel.blueman@gmail.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Andrew Hendry <andrew.hendry@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ed42d59528
commit
306030ab28
@@ -855,10 +855,10 @@ static int rtl8169_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol)
|
||||
else
|
||||
tp->features &= ~RTL_FEATURE_WOL;
|
||||
__rtl8169_set_wol(tp, wol->wolopts);
|
||||
device_set_wakeup_enable(&tp->pci_dev->dev, wol->wolopts);
|
||||
|
||||
spin_unlock_irq(&tp->lock);
|
||||
|
||||
device_set_wakeup_enable(&tp->pci_dev->dev, wol->wolopts);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user