net: use kfree_skb_list() helper in more places
Subsystems (4)
PATCH 1/1 net: use kfree_skb_list() helper in more places
Signed-off-by Florian Westphal <[email protected]>
--- net/ipv6/ip6_output.c | 6 +----- net/xfrm/xfrm_output.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-)
net/ipv6/ip6_output.c +1 -5
@@ -701,11 +701,7 @@ int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))return 0 ; } -while (frag) { - skb = frag->next; -kfree_skb (frag); - frag = skb; - } +kfree_skb_list (frag);IP6_INC_STATS (net,ip6_dst_idev (&rt->dst),IPSTATS_MIB_FRAGFAILS );
net/xfrm/xfrm_output.c +1 -5
@@ -166,11 +166,7 @@ static int xfrm_output_gso(struct sk_buff *skb) err =xfrm_output2 (segs);if (unlikely (err)) { -while ((segs = nskb)) { - nskb = segs->next; - segs->next =NULL ; -kfree_skb (segs); - } +kfree_skb_list (nskb);return err; }
Signature · 1 line
1.8.1.5
From: Florian Westphal <[email protected]>
Date: Wed, 10 Sep 2014 01:08:46 +0200
Quoted 1 line
Signed-off-by Florian Westphal <[email protected]>
Applied.