summaryrefslogtreecommitdiff
path: root/net/xfrm
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2014-09-10 03:08:46 +0400
committerDavid S. Miller <davem@davemloft.net>2014-09-10 07:10:45 +0400
commit46cfd725c377bc5bb32b56b5151d6de4cb5a71e3 (patch)
treea8a8ef5d06bd634005c38bc6ed34318ed9ad29b8 /net/xfrm
parent72bb17b37b9076e12b388feee4a52e85ef8f6620 (diff)
downloadlinux-46cfd725c377bc5bb32b56b5151d6de4cb5a71e3.tar.xz
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')
-rw-r--r--net/xfrm/xfrm_output.c6
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;
}