From: Eric Dumazet Date: Thu, 19 Apr 2012 02:24:48 +0000 (+0000) Subject: ipv6: dccp: dont drop packet but consume it X-Git-Tag: v3.12-rc1~3113^2~392 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7604adc2fffc275adc6674659e09479adf633e4a;p=kernel%2Fkernel-generic.git 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 Signed-off-by: David S. Miller --- diff --git a/net/dccp/ipv6.c b/net/dccp/ipv6.c index e923ac9..fa9512d 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, newnp->pktoptions = NULL; if (ireq6->pktopts != NULL) { newnp->pktoptions = skb_clone(ireq6->pktopts, GFP_ATOMIC); - kfree_skb(ireq6->pktopts); + consume_skb(ireq6->pktopts); ireq6->pktopts = NULL; if (newnp->pktoptions) skb_set_owner_r(newnp->pktoptions, newsk);