net: erspan: reload pointer after pskb_may_pull
authorWilliam Tu <u9012063@gmail.com>
Fri, 15 Dec 2017 22:27:44 +0000 (14:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 20:11:25 +0000 (15:11 -0500)
commitd91e8db5b629a3c8c81db4dc317a66c7b5591821
treededc322d3566dac8300b68c3fda955a61006ab58
parentae3e13373b879670d873e5657a903bd208f0dc40
net: erspan: reload pointer after pskb_may_pull

pskb_may_pull() can change skb->data, so we need to re-load pkt_md
and ershdr at the right place.

Fixes: 94d7d8f29287 ("ip6_gre: add erspan v2 support")
Fixes: f551c91de262 ("net: erspan: introduce erspan v2 for ip_gre")
Signed-off-by: William Tu <u9012063@gmail.com>
Cc: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c