diff options
author | Florian Westphal | 2014-09-10 01:08:46 +0200 |
---|---|---|
committer | David S. Miller | 2014-09-10 05:10:45 +0200 |
commit | 46cfd725c377bc5bb32b56b5151d6de4cb5a71e3 (patch) | |
tree | a8a8ef5d06bd634005c38bc6ed34318ed9ad29b8 /net/ipv6/ip6_output.c | |
parent | ipv4: udp4_gro_complete() is static (diff) | |
download | kernel-qcow2-linux-46cfd725c377bc5bb32b56b5151d6de4cb5a71e3.tar.gz kernel-qcow2-linux-46cfd725c377bc5bb32b56b5151d6de4cb5a71e3.tar.xz kernel-qcow2-linux-46cfd725c377bc5bb32b56b5151d6de4cb5a71e3.zip |
net: use kfree_skb_list() helper in more places
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index b7a3e7b3378e..2e6a0dbf7fb3 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c @@ -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); |