projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da0dde9
)
net: use kfree_skb_list() from ip_do_fragment()
author
Pablo Neira Ayuso
<pablo@netfilter.org>
Thu, 4 Apr 2019 11:54:20 +0000
(13:54 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 4 Apr 2019 17:48:26 +0000
(10:48 -0700)
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>
net/ipv4/ip_output.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ip_output.c
b/net/ipv4/ip_output.c
index c80188875f39238f8d8ff33603cacf279d3f903a..10b35328cfbc6336f27396628822d8f8e0381329 100644
(file)
--- 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;