[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)
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>

No differences found