mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									72bb17b37b
								
							
						
					
					
						commit
						46cfd725c3
					
				
					 2 changed files with 2 additions and 10 deletions
				
			
		|  | @ -701,11 +701,7 @@ int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) | |||
| 			return 0; | ||||
| 		} | ||||
| 
 | ||||
| 		while (frag) { | ||||
| 			skb = frag->next; | ||||
| 			kfree_skb(frag); | ||||
| 			frag = skb; | ||||
| 		} | ||||
| 		kfree_skb_list(frag); | ||||
| 
 | ||||
| 		IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), | ||||
| 			      IPSTATS_MIB_FRAGFAILS); | ||||
|  |  | |||
|  | @ -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; | ||||
| 		} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Florian Westphal
						Florian Westphal