aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/usb/usbnet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 815493caea7f..1e46f693eb47 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -1515,6 +1515,7 @@ int usbnet_suspend (struct usb_interface *intf, pm_message_t message)
1515 spin_lock_irq(&dev->txq.lock); 1515 spin_lock_irq(&dev->txq.lock);
1516 /* don't autosuspend while transmitting */ 1516 /* don't autosuspend while transmitting */
1517 if (dev->txq.qlen && PMSG_IS_AUTO(message)) { 1517 if (dev->txq.qlen && PMSG_IS_AUTO(message)) {
1518 dev->suspend_count--;
1518 spin_unlock_irq(&dev->txq.lock); 1519 spin_unlock_irq(&dev->txq.lock);
1519 return -EBUSY; 1520 return -EBUSY;
1520 } else { 1521 } else {