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>
Tue, 12 Jul 2016 12:47:43 +0000 (08:47 -0400)
commit6eebc66dba8331624cc45d65af5a7aeffe9319a6
treeb43fcaa386611ce629ecb4f7ff34214f93c9e96f
parent1f0b56ff5361768123488667d0051f280dd91b14
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