From: James Chapman Date: Tue, 6 Nov 2007 07:32:37 +0000 (-0800) Subject: [PPP]: L2TP: Fix oops in transmit and receive paths X-Git-Tag: v2.6.24-rc3~179^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91781004b9c029ee55b7aa9ef950a373ba865dc6;p=pandora-kernel.git [PPP]: L2TP: Fix oops in transmit and receive paths Changes made on 18-sep to fix skb handling in the pppol2tp driver broke the transmit and receive paths. Users are only running into this now because distros are now using 2.6.23 and I must have messed up when I tested the change. For receive, we now do our own calculation of how much to pull from the skb (variable length L2TP header) rather than using skb_transport_offset(). Also, if the skb isn't a data packet, it must be passed back to UDP with skb->data pointing to the UDP header. For transmit, make sure skb->sk is set up because ip_queue_xmit() needs it. Signed-off-by: James Chapman Signed-off-by: David S. Miller --- Reading git-diff-tree failed