vxlan: fix a free after use
pskb_may_pull maybe change skb->data and make eth pointer oboslete,
so eth needs to reload
Fixes: 91269e390d ("vxlan: using pskb_may_pull as early as possible")
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
			
			
This commit is contained in:
		
							parent
							
								
									389f48947a
								
							
						
					
					
						commit
						7a9f526fc3
					
				| @ -1887,6 +1887,7 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev) | ||||
| 				    msg->icmph.icmp6_type == NDISC_NEIGHBOUR_SOLICITATION) | ||||
| 					return neigh_reduce(dev, skb); | ||||
| 		} | ||||
| 		eth = eth_hdr(skb); | ||||
| #endif | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user