diff options
author | Florian Westphal <fw@strlen.de> | 2014-09-10 01:08:46 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-10 05:10:45 +0200 |
commit | 46cfd725c377bc5bb32b56b5151d6de4cb5a71e3 (patch) | |
tree | a8a8ef5d06bd634005c38bc6ed34318ed9ad29b8 /net/xfrm/xfrm_output.c | |
parent | ipv4: udp4_gro_complete() is static (diff) | |
download | linux-46cfd725c377bc5bb32b56b5151d6de4cb5a71e3.tar.xz linux-46cfd725c377bc5bb32b56b5151d6de4cb5a71e3.zip |
net: use kfree_skb_list() helper in more places
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_output.c')
-rw-r--r-- | net/xfrm/xfrm_output.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index c51e8f7b8653..499d6c18a8ce 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c @@ -166,11 +166,7 @@ static int xfrm_output_gso(struct sk_buff *skb) err = xfrm_output2(segs); if (unlikely(err)) { - while ((segs = nskb)) { - nskb = segs->next; - segs->next = NULL; - kfree_skb(segs); - } + kfree_skb_list(nskb); return err; } |