diff options
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) | |||
166 | err = xfrm_output2(segs); | 166 | err = xfrm_output2(segs); |
167 | 167 | ||
168 | if (unlikely(err)) { | 168 | if (unlikely(err)) { |
169 | while ((segs = nskb)) { | 169 | kfree_skb_list(nskb); |
170 | nskb = segs->next; | ||
171 | segs->next = NULL; | ||
172 | kfree_skb(segs); | ||
173 | } | ||
174 | return err; | 170 | return err; |
175 | } | 171 | } |
176 | 172 | ||