aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ipv6.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2012-04-18 22:24:48 -0400
committerDavid S. Miller <davem@davemloft.net>2012-04-19 14:23:55 -0400
commit7604adc2fffc275adc6674659e09479adf633e4a (patch)
treebf86d599810162b81fc516b4c703a06985500308 /net/dccp/ipv6.c
parentabc4e4fa29eb81f874d4ef3c6bafcf5ad6f90b07 (diff)
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: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ipv6.c')
-rw-r--r--net/dccp/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c
index e923ac95bb04..fa9512d86f3b 100644
--- a/net/dccp/ipv6.c
+++ b/net/dccp/ipv6.c
@@ -580,7 +580,7 @@ static struct sock *dccp_v6_request_recv_sock(struct sock *sk,
580 newnp->pktoptions = NULL; 580 newnp->pktoptions = NULL;
581 if (ireq6->pktopts != NULL) { 581 if (ireq6->pktopts != NULL) {
582 newnp->pktoptions = skb_clone(ireq6->pktopts, GFP_ATOMIC); 582 newnp->pktoptions = skb_clone(ireq6->pktopts, GFP_ATOMIC);
583 kfree_skb(ireq6->pktopts); 583 consume_skb(ireq6->pktopts);
584 ireq6->pktopts = NULL; 584 ireq6->pktopts = NULL;
585 if (newnp->pktoptions) 585 if (newnp->pktoptions)
586 skb_set_owner_r(newnp->pktoptions, newsk); 586 skb_set_owner_r(newnp->pktoptions, newsk);