提交 7604adc2 编写于 作者: E Eric Dumazet 提交者: David S. Miller

ipv6: dccp: 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: NEric Dumazet <edumazet@google.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 abc4e4fa
...@@ -580,7 +580,7 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk, ...@@ -580,7 +580,7 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk,
newnp->pktoptions = NULL; newnp->pktoptions = NULL;
if (ireq6->pktopts != NULL) { if (ireq6->pktopts != NULL) {
newnp->pktoptions = skb_clone(ireq6->pktopts, GFP_ATOMIC); newnp->pktoptions = skb_clone(ireq6->pktopts, GFP_ATOMIC);
kfree_skb(ireq6->pktopts); consume_skb(ireq6->pktopts);
ireq6->pktopts = NULL; ireq6->pktopts = NULL;
if (newnp->pktoptions) if (newnp->pktoptions)
skb_set_owner_r(newnp->pktoptions, newsk); skb_set_owner_r(newnp->pktoptions, newsk);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册