diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-14 20:31:54 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-14 20:31:54 -0400 |
commit | 6dc6472581f693b5fc95aebedf67b4960fb85cf0 (patch) | |
tree | 06a5a9a08519950575505273eabced331ed51405 /drivers/net/usb/usbnet.c | |
parent | ee673eaa72d8d185012b1027a05e25aba18c267f (diff) | |
parent | 8acd3a60bcca17c6d89c73cee3ad6057eb83ba1e (diff) |
Merge commit 'origin'
Manual fixup of conflicts on:
arch/powerpc/include/asm/dcr-regs.h
drivers/net/ibm_newemac/core.h
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-rw-r--r-- | drivers/net/usb/usbnet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c index 8463efb9e0b1..02d25c743994 100644 --- a/drivers/net/usb/usbnet.c +++ b/drivers/net/usb/usbnet.c | |||
@@ -512,14 +512,13 @@ static int unlink_urbs (struct usbnet *dev, struct sk_buff_head *q) | |||
512 | int count = 0; | 512 | int count = 0; |
513 | 513 | ||
514 | spin_lock_irqsave (&q->lock, flags); | 514 | spin_lock_irqsave (&q->lock, flags); |
515 | for (skb = q->next; skb != (struct sk_buff *) q; skb = skbnext) { | 515 | skb_queue_walk_safe(q, skb, skbnext) { |
516 | struct skb_data *entry; | 516 | struct skb_data *entry; |
517 | struct urb *urb; | 517 | struct urb *urb; |
518 | int retval; | 518 | int retval; |
519 | 519 | ||
520 | entry = (struct skb_data *) skb->cb; | 520 | entry = (struct skb_data *) skb->cb; |
521 | urb = entry->urb; | 521 | urb = entry->urb; |
522 | skbnext = skb->next; | ||
523 | 522 | ||
524 | // during some PM-driven resume scenarios, | 523 | // during some PM-driven resume scenarios, |
525 | // these (async) unlinks complete immediately | 524 | // these (async) unlinks complete immediately |