]> git.baikalelectronics.ru Git - kernel.git/commit
ip6_gre: reload ipv6h in prepare_ip6gre_xmit_ipv6
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Wed, 24 Jul 2019 12:00:42 +0000 (20:00 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 20:59:25 +0000 (13:59 -0700)
commit6786154136d0059472169ce4cb80ea1a632d422b
treeb0acaaff61f4a996b116e1b49bb8f71c8505db85
parentc3d3749286db6984a84eee15ac7000d878e7b00a
ip6_gre: reload ipv6h in prepare_ip6gre_xmit_ipv6

Since ip6_tnl_parse_tlv_enc_lim() can call pskb_may_pull()
which may change skb->data, so we need to re-load ipv6h at
the right place.

Fixes: 95e6cc058d41 ("ip6_gre: Refactor ip6gre xmit codes")
Cc: William Tu <u9012063@gmail.com>
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c