Commit 942f146a authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by David S. Miller

net: use kfree_skb_list() from ip_do_fragment()

Just like 46cfd725 ("net: use kfree_skb_list() helper in more places").
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Acked-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent da0dde94
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment