diff options
author | Li RongQing <roy.qing.li@gmail.com> | 2014-10-17 02:06:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-17 16:23:58 -0400 |
commit | 7a9f526fc3ee49b6034af2f243676ee0a27dcaa8 (patch) | |
tree | 438784301c4410430df7cf2a7d53e71f26a733b2 /drivers/net | |
parent | 389f48947a5a37ea283de520abb742d42174edb0 (diff) |
vxlan: fix a free after use
pskb_may_pull maybe change skb->data and make eth pointer oboslete,
so eth needs to reload
Fixes: 91269e390d062 ("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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/vxlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 77ab844cd8ae..ca309820d39e 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -1887,6 +1887,7 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev) | |||
1887 | msg->icmph.icmp6_type == NDISC_NEIGHBOUR_SOLICITATION) | 1887 | msg->icmph.icmp6_type == NDISC_NEIGHBOUR_SOLICITATION) |
1888 | return neigh_reduce(dev, skb); | 1888 | return neigh_reduce(dev, skb); |
1889 | } | 1889 | } |
1890 | eth = eth_hdr(skb); | ||
1890 | #endif | 1891 | #endif |
1891 | } | 1892 | } |
1892 | 1893 | ||