]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Oct 2014 20:23:58 +0000 (16:23 -0400)
commitaa8c9fbe11aa9029b159746993645988f5b75631
tree438784301c4410430df7cf2a7d53e71f26a733b2
parenta6b19bc835aaf2ffdff0faf3d9d71d76a0e21cea
vxlan: fix a free after use

pskb_may_pull maybe change skb->data and make eth pointer oboslete,
so eth needs to reload

Fixes: 8ab4f5c4da066 ("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