Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288374
b: refs/heads/master
c: 4231d47
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Siewior authored and David S. Miller committed Mar 8, 2012
1 parent 7beaa47 commit 28c27ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ac3f48de09d8f4b73397047e413fadff7f65cfa7
refs/heads/master: 4231d47e6fe69f061f96c98c30eaf9fb4c14b96d
2 changes: 2 additions & 0 deletions trunk/drivers/net/usb/usbnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,13 +589,15 @@ 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);
if (retval != -EINPROGRESS && retval != 0)
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;
Expand Down

0 comments on commit 28c27ee

Please sign in to comment.