]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
vxlan: fix a free after use
authorLi RongQing <roy.qing.li@gmail.com>
Fri, 17 Oct 2014 06:06:16 +0000 (14:06 +0800)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Nov 2014 09:03:21 +0000 (10:03 +0100)
commit4cb545d54ca5815e9a2d56daef266a39096e6157
tree5ba02bc1508750b616bd7383353f209b7aab91cd
parente073fb104ffd9170e37b0c528199aa493ae55978
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>
drivers/net/vxlan.c