浏览代码

ipv6: tcp: dont drop packet but consume it

When we need to clone skb, we dont drop a packet.
Call consume_skb() to not confuse dropwatch.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Eric Dumazet 13 年之前
父节点
当前提交
ab185d7b25
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/ipv6/tcp_ipv6.c

+ 1 - 1
net/ipv6/tcp_ipv6.c

@@ -1353,7 +1353,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
 	newnp->pktoptions = NULL;
 	newnp->pktoptions = NULL;
 	if (treq->pktopts != NULL) {
 	if (treq->pktopts != NULL) {
 		newnp->pktoptions = skb_clone(treq->pktopts, GFP_ATOMIC);
 		newnp->pktoptions = skb_clone(treq->pktopts, GFP_ATOMIC);
-		kfree_skb(treq->pktopts);
+		consume_skb(treq->pktopts);
 		treq->pktopts = NULL;
 		treq->pktopts = NULL;
 		if (newnp->pktoptions)
 		if (newnp->pktoptions)
 			skb_set_owner_r(newnp->pktoptions, newsk);
 			skb_set_owner_r(newnp->pktoptions, newsk);