[PPP] generic: Fix receive path data clobbering & non-linear handling
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 16 Sep 2007 23:22:13 +0000 (16:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2007 23:22:13 +0000 (16:22 -0700)
commit2a38b775b77f99308a4e571c13d908df78ac5e57
tree10f7bbe1d1a35c7383b7aa7fa865119a8bc0ae65
parent7b797d5b150775d717cb03b5ada28b8bad99afab
[PPP] generic: Fix receive path data clobbering & non-linear handling

This patch adds missing pskb_may_pull calls to deal with non-linear
packets that may arrive from pppoe or pppol2tp.

It also copies cloned packets before writing over them.

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