650-pppoe_header_pad.patch 590 B

1234567891011121314151617181920
  1. --- a/drivers/net/ppp/pppoe.c
  2. +++ b/drivers/net/ppp/pppoe.c
  3. @@ -879,7 +879,7 @@ static int pppoe_sendmsg(struct socket *
  4. goto end;
  5. - skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32,
  6. + skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32 + NET_SKB_PAD,
  7. 0, GFP_KERNEL);
  8. if (!skb) {
  9. error = -ENOMEM;
  10. @@ -887,7 +887,7 @@ static int pppoe_sendmsg(struct socket *
  11. }
  12. /* Reserve space for headers. */
  13. - skb_reserve(skb, dev->hard_header_len);
  14. + skb_reserve(skb, dev->hard_header_len + NET_SKB_PAD);
  15. skb_reset_network_header(skb);
  16. skb->dev = dev;