ipv6: dccp: dont drop packet but consume it
authorEric Dumazet <edumazet@google.com>
Thu, 19 Apr 2012 02:24:48 +0000 (02:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Apr 2012 18:23:55 +0000 (14:23 -0400)
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>
net/dccp/ipv6.c

index e923ac9..fa9512d 100644 (file)
@@ -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);