]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PPP] L2TP: Fix skb handling in pppol2tp_recv_core
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 18 Sep 2007 20:18:42 +0000 (13:18 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 20 Sep 2007 19:14:17 +0000 (12:14 -0700)
commit7a70e39b6633ad85936b029463134ee2599600f1
tree7304a9000724a93683299ef7c5aa644725a3e0fb
parenta14d6abc947a5504e8d0f934da57b5bc4cea59ca
[PPP] L2TP: Fix skb handling in pppol2tp_recv_core

The function pppol2tp_recv_core doesn't handle non-linear packets properly.
It also fails to check the remote offset field.

This patch fixes these problems.  It also removes an unnecessary check on
the UDP header which has already been performed by the UDP layer.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppol2tp.c