diff options
author | David S. Miller <davem@davemloft.net> | 2012-03-09 23:34:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-03-09 23:34:20 +0100 |
commit | b2d3298e0916fa059712691c85a0e97becc4ab9f (patch) | |
tree | c7d5ea46a9dbf9cebdb122df4aaf0beda6e7621e /drivers/net/usb/usbnet.c | |
parent | net/pch_gbe: supports eg20t ptp clock (diff) | |
parent | x86: Derandom delay_tsc for 64 bit (diff) | |
download | linux-b2d3298e0916fa059712691c85a0e97becc4ab9f.tar.xz linux-b2d3298e0916fa059712691c85a0e97becc4ab9f.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-rw-r--r-- | drivers/net/usb/usbnet.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index b924f46c963c..83dcc530618e 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c @@ -589,6 +589,7 @@ static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q) entry = (struct skb_data *) skb->cb; urb = entry->urb; + spin_unlock_irqrestore(&q->lock, flags); // during some PM-driven resume scenarios, // these (async) unlinks complete immediately retval = usb_unlink_urb (urb); @@ -596,6 +597,7 @@ static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q) netdev_dbg(dev->net, "unlink urb err, %d\n", retval); else count++; + spin_lock_irqsave(&q->lock, flags); } spin_unlock_irqrestore (&q->lock, flags); return count; |