소스 검색

aoe: Fix OOPS after SKB queue changes.

Reported by Thomas Graf.

If we don't unlink the SKB from the queue when we send it
out in aoenet_xmit(), dev_hard_start_xmit() will see skb->next
as non-NULL and interpret this to mean the SKB is part of a
GSO segment list.

Add __skb_unlink() call to fix that.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 17 년 전
부모
커밋
d87798450a
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      drivers/block/aoe/aoenet.c

+ 3 - 1
drivers/block/aoe/aoenet.c

@@ -99,8 +99,10 @@ aoenet_xmit(struct sk_buff_head *queue)
 {
 {
 	struct sk_buff *skb, *tmp;
 	struct sk_buff *skb, *tmp;
 
 
-	skb_queue_walk_safe(queue, skb, tmp)
+	skb_queue_walk_safe(queue, skb, tmp) {
+		__skb_unlink(skb, queue);
 		dev_queue_xmit(skb);
 		dev_queue_xmit(skb);
+	}
 }
 }
 
 
 /* 
 /*