summaryrefslogtreecommitdiff
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2013-12-20 14:29:08 -0800
committerDavid S. Miller <davem@davemloft.net>2013-12-21 22:28:16 -0500
commit289dccbe141e01efc5968fe39a0993c9f611375e (patch)
tree3582a2dad5279b0a7c39abc75f5517e5ca427273 /net/core/skbuff.c
parent1b6176cca302e2eebd2b5ce5c512282a548adbe0 (diff)
downloadlinux-stable-289dccbe141e01efc5968fe39a0993c9f611375e.tar.gz
linux-stable-289dccbe141e01efc5968fe39a0993c9f611375e.tar.bz2
linux-stable-289dccbe141e01efc5968fe39a0993c9f611375e.zip
net: use kfree_skb_list() helper
We can use kfree_skb_list() instead of open coding it. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 2b6b863f51f2..eb96c2c22400 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -2981,10 +2981,7 @@ perform_csum_check:
return segs;
err:
- while ((skb = segs)) {
- segs = skb->next;
- kfree_skb(skb);
- }
+ kfree_skb_list(segs);
return ERR_PTR(err);
}
EXPORT_SYMBOL_GPL(skb_segment);