diff options
author | Eric Dumazet <edumazet@google.com> | 2012-04-19 02:24:36 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 14:23:55 -0400 |
commit | ab185d7b2551e9b8d946a657ddccd86d192bebd1 (patch) | |
tree | 660b4772773143b35fda8915ad0dcf783f021aaf /net/ipv6 | |
parent | 8460c00f6e2fb8e05421a277fee62fe09803f7a7 (diff) | |
download | kernel_goldelico_gta04-ab185d7b2551e9b8d946a657ddccd86d192bebd1.zip kernel_goldelico_gta04-ab185d7b2551e9b8d946a657ddccd86d192bebd1.tar.gz kernel_goldelico_gta04-ab185d7b2551e9b8d946a657ddccd86d192bebd1.tar.bz2 |
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>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 86cfe60..050c551 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/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; if (treq->pktopts != NULL) { newnp->pktoptions = skb_clone(treq->pktopts, GFP_ATOMIC); - kfree_skb(treq->pktopts); + consume_skb(treq->pktopts); treq->pktopts = NULL; if (newnp->pktoptions) skb_set_owner_r(newnp->pktoptions, newsk); |