l2tp: Fix PPP header erasure and memory leak
authorGuillaume Nault <g.nault@alphalink.fr>
Wed, 12 Jun 2013 14:07:23 +0000 (16:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 09:39:04 +0000 (02:39 -0700)
commit55b92b7a11690bc377b5d373872a6b650ae88e64
tree514fe980a7da487b07d52f2821a90820e59026fa
parent4f5474e7fd68988cb11373fc698bf10b35b49e31
l2tp: Fix PPP header erasure and memory leak

Copy user data after PPP framing header. This prevents erasure of the
added PPP header and avoids leaking two bytes of uninitialised memory
at the end of skb's data buffer.

Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_ppp.c