vxlan: fix a free after use
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 17 Oct 2014 06:06:16 +0000 (14:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 16:59:43 +0000 (08:59 -0800)
commit102c052fd16e1e73fe2d69028f7c13e1b52571c8
tree643dcf74a6a24dce6b4043a1610b163191c99241
parent6f75e2f9f7657c9462b2268c2ff97f93bfa2d3c8
vxlan: fix a free after use

[ Upstream commit 7a9f526fc3ee49b6034af2f243676ee0a27dcaa8 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/vxlan.c