net: use kfree_skb_list() from ip_do_fragment()
Just like 46cfd725c3
("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>
This commit is contained in:
Родитель
da0dde94ad
Коммит
942f146a63
|
@ -693,11 +693,8 @@ int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (frag) {
|
kfree_skb_list(frag);
|
||||||
skb = frag->next;
|
|
||||||
kfree_skb(frag);
|
|
||||||
frag = skb;
|
|
||||||
}
|
|
||||||
IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
|
IP_INC_STATS(net, IPSTATS_MIB_FRAGFAILS);
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче