diff options
author | Eric Dumazet <edumazet@google.com> | 2013-12-21 02:29:08 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-22 07:28:16 +0400 |
commit | 289dccbe141e01efc5968fe39a0993c9f611375e (patch) | |
tree | 3582a2dad5279b0a7c39abc75f5517e5ca427273 /net/core/skbuff.c | |
parent | 1b6176cca302e2eebd2b5ce5c512282a548adbe0 (diff) | |
download | linux-289dccbe141e01efc5968fe39a0993c9f611375e.tar.xz |
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.c | 5 |
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); |