ppp_generic: handle non-linear skbs when passing them to pppd
authorSimon Arlott <simon@fire.lp0.eu>
Mon, 3 May 2010 10:20:27 +0000 (10:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 May 2010 20:27:00 +0000 (13:27 -0700)
commit19937d0482cfe194fe52e97e59aa58ec911de0d1
treeb05220257871cfa0c13d22780a8af8a891f0e5c8
parentea8420e9f5dff7324607671f0b7ab7fbf726339d
ppp_generic: handle non-linear skbs when passing them to pppd

Frequently when using PPPoE with an interface MTU greater than 1500,
the skb is likely to be non-linear. If the skb needs to be passed to
pppd then the skb data must be read correctly.

The previous commit fixes an issue with accidentally sending skbs
to pppd based on an invalid read of the protocol type. When that
error occurred pppd was reading invalid skb data too.

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp_generic.c