ipv6: l2tp: fix a potential issue in l2tp_ip6_recv
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sun, 3 Apr 2016 14:09:24 +0000 (22:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Apr 2016 20:00:28 +0000 (16:00 -0400)
commitbe447f305494e019dfc37ea4cdf3b0e4200b4eba
tree7bfc596ff99287a234d6c116d36aa66bc1ff4764
parent5745b8232e942abd5e16e85fa9b27cc21324acf0
ipv6: l2tp: fix a potential issue in l2tp_ip6_recv

pskb_may_pull() can change skb->data, so we have to load ptr/optr at the
right place.

Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ip6.c