]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbf36faf4f5690814595806a2f5f876ddc6832f76
tree1f4905726d49d18faf80fba0551455997f4417ee
parent524beba2ad244a71c49400dc44bb8de268956215
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