From: Eric Dumazet Date: Thu, 19 Apr 2012 06:10:26 +0000 (+0000) Subject: ipv4: dont drop packet in defrag but consume it X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cbf8f7bb200f5dbdc9ce11243431440720db03dc;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git ipv4: dont drop packet in defrag but consume it When defragmentation is finalized, we clone a packet and kfree_skb() it. Call consume_skb() to not confuse dropwatch, since its not a drop. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 3727e234c88..631f596d5d7 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c @@ -569,7 +569,7 @@ static int ip_frag_reasm(struct ipq *qp, struct sk_buff *prev, skb_morph(head, qp->q.fragments); head->next = qp->q.fragments->next; - kfree_skb(qp->q.fragments); + consume_skb(qp->q.fragments); qp->q.fragments = head; }