X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fblock%2Faoe%2Faoenet.c;h=9157d64270cb041ba8b92bc462913439b12018e0;hb=6925bac120097b823fc990c143b9789c21cc60b5;hp=0c81ca7312878a05b1bc96cbc47d2722ee6b8c37;hpb=4fbb71597af591fa0ef565df1ba745c92d5070f7;p=linux-2.6-omap-h63xx.git diff --git a/drivers/block/aoe/aoenet.c b/drivers/block/aoe/aoenet.c index 0c81ca73128..9157d64270c 100644 --- a/drivers/block/aoe/aoenet.c +++ b/drivers/block/aoe/aoenet.c @@ -95,13 +95,12 @@ mac_addr(char addr[6]) } void -aoenet_xmit(struct sk_buff *sl) +aoenet_xmit(struct sk_buff_head *queue) { - struct sk_buff *skb; + struct sk_buff *skb, *tmp; - while ((skb = sl)) { - sl = sl->next; - skb->next = skb->prev = NULL; + skb_queue_walk_safe(queue, skb, tmp) { + __skb_unlink(skb, queue); dev_queue_xmit(skb); } }