commit | 46cfd725c377bc5bb32b56b5151d6de4cb5a71e3 | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Wed Sep 10 01:08:46 2014 +0200 |
committer | David S. Miller <davem@davemloft.net> | Tue Sep 09 20:10:45 2014 -0700 |
tree | a8a8ef5d06bd634005c38bc6ed34318ed9ad29b8 | |
parent | 72bb17b37b9076e12b388feee4a52e85ef8f6620 [diff] [blame] |
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>
diff --git a/net/xfrm/xfrm_output.c b/net/xfrm/xfrm_output.c index c51e8f7b..499d6c1 100644 --- a/net/xfrm/xfrm_output.c +++ b/net/xfrm/xfrm_output.c
@@ -166,11 +166,7 @@ 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; }