diff options
author | Florian Fainelli <florian@openwrt.org> | 2013-01-08 22:19:31 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2013-01-08 22:19:31 +0000 |
commit | 8dbed04ec9cad7771590af557b9edfe8e04bca8c (patch) | |
tree | 412beb5055a726a8f371c35580bdc85300e4e2f7 /target/linux/generic/patches-3.8/650-pppoe_header_pad.patch | |
parent | c38cb63808ff1a395dd0384af23773b044adf9cb (diff) | |
download | upstream-8dbed04ec9cad7771590af557b9edfe8e04bca8c.tar.gz upstream-8dbed04ec9cad7771590af557b9edfe8e04bca8c.tar.bz2 upstream-8dbed04ec9cad7771590af557b9edfe8e04bca8c.zip |
kernel: add support for 3.8-rc2
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 35055
Diffstat (limited to 'target/linux/generic/patches-3.8/650-pppoe_header_pad.patch')
-rw-r--r-- | target/linux/generic/patches-3.8/650-pppoe_header_pad.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.8/650-pppoe_header_pad.patch b/target/linux/generic/patches-3.8/650-pppoe_header_pad.patch new file mode 100644 index 0000000000..a89a9f3b74 --- /dev/null +++ b/target/linux/generic/patches-3.8/650-pppoe_header_pad.patch @@ -0,0 +1,20 @@ +--- a/drivers/net/ppp/pppoe.c ++++ b/drivers/net/ppp/pppoe.c +@@ -850,7 +850,7 @@ static int pppoe_sendmsg(struct kiocb *i + goto end; + + +- skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32, ++ skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32 + NET_SKB_PAD, + 0, GFP_KERNEL); + if (!skb) { + error = -ENOMEM; +@@ -858,7 +858,7 @@ static int pppoe_sendmsg(struct kiocb *i + } + + /* Reserve space for headers. */ +- skb_reserve(skb, dev->hard_header_len); ++ skb_reserve(skb, dev->hard_header_len + NET_SKB_PAD); + skb_reset_network_header(skb); + + skb->dev = dev; |