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)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:07 +0000 (23:07 -0400)
commit1d8ad31a7ef1e1dcc4968518d5cefcd492bc2c58
tree93bf396378c2a67f0b315cdc3a5be049c0b5b412
parenta9c5107769719e76a895fd59408442e5629fc40f
ipv6: l2tp: fix a potential issue in l2tp_ip6_recv

[ Upstream commit be447f305494e019dfc37ea4cdf3b0e4200b4eba ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
net/l2tp/l2tp_ip6.c