From: Sridhar Samudrala Date: Mon, 29 Apr 2013 13:02:42 +0000 (+0000) Subject: net: Use consume_skb() to free gso segmented skb X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0c772159d1ae15c664304f0830c9aec4702593da;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git net: Use consume_skb() to free gso segmented skb Use consume_skb() to free the original skb that is successfully transmitted as gso segmented skbs so that it is not treated as a drop due to an error. Signed-off-by: Sridhar Samudrala Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/net/core/dev.c b/net/core/dev.c index 7c30dcecee1..4040673f806 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -2565,8 +2565,11 @@ gso: } while (skb->next); out_kfree_gso_skb: - if (likely(skb->next == NULL)) + if (likely(skb->next == NULL)) { skb->destructor = DEV_GSO_CB(skb)->destructor; + consume_skb(skb); + return rc; + } out_kfree_skb: kfree_skb(skb); out: