diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-04-04 13:54:20 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-04 10:48:26 -0700 |
commit | 942f146a63cecaa6d7fb1e8d255efab217126c50 (patch) | |
tree | ac85f32700f87d21887f9abef6d1cda52f6519cb /net/ipv4/ip_output.c | |
parent | da0dde94ad481714f3194d367b9afb008de1d5d2 (diff) | |
download | linux-942f146a63cecaa6d7fb1e8d255efab217126c50.tar.bz2 |
net: use kfree_skb_list() from ip_do_fragment()
Just like 46cfd725c377 ("net: use kfree_skb_list() helper in more places").
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_output.c')
-rw-r--r-- | net/ipv4/ip_output.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index c80188875f39..10b35328cfbc 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -693,11 +693,8 @@ int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, return 0; } - while (frag) { - skb = frag->next; - kfree_skb(frag); - frag = skb; - } + kfree_skb_list(frag); + IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS); return err; |