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)
committerJiri Slaby <jslaby@suse.cz>
Tue, 19 Apr 2016 14:43:43 +0000 (16:43 +0200)
commit4a05fe250a8195d5568d91e926b0800eca9e35f2
tree6d4b05607454747a9171cc5c60b0905fe0e8e5bc
parente1e03d36ca1eb563b11827760a5e5a5d74377f37
ipv4: l2tp: fix a potential issue in l2tp_ip_recv

[ Upstream commit 5745b8232e942abd5e16e85fa9b27cc21324acf0 ]

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: Jiri Slaby <jslaby@suse.cz>
net/l2tp/l2tp_ip.c