ipv4: l2tp: fix a potential issue in l2tp_ip_recv
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Sun, 3 Apr 2016 14:09:23 +0000 (22:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Apr 2016 20:00:28 +0000 (16:00 -0400)
commit5745b8232e942abd5e16e85fa9b27cc21324acf0
tree1f4905726d49d18faf80fba0551455997f4417ee
parent05cf8077e54b20dddb756eaa26f3aeb5c38dd3cf
ipv4: l2tp: fix a potential issue in l2tp_ip_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_ip.c