source: trunk/target/linux/generic/patches-2.6.39/650-pppoe_header_pad.patch @ 26691

Last change on this file since 26691 was 26691, checked in by nbd, 6 years ago

kernel: reorganize 2.6.39 patches

File size: 582 bytes
  • drivers/net/pppoe.c

    a b static int pppoe_sendmsg(struct kiocb *i 
    855855                goto end; 
    856856 
    857857 
    858         skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32, 
     858        skb = sock_wmalloc(sk, total_len + dev->hard_header_len + 32 + NET_SKB_PAD, 
    859859                           0, GFP_KERNEL); 
    860860        if (!skb) { 
    861861                error = -ENOMEM; 
    static int pppoe_sendmsg(struct kiocb *i 
    863863        } 
    864864 
    865865        /* Reserve space for headers. */ 
    866         skb_reserve(skb, dev->hard_header_len); 
     866        skb_reserve(skb, dev->hard_header_len + NET_SKB_PAD); 
    867867        skb_reset_network_header(skb); 
    868868 
    869869        skb->dev = dev; 
Note: See TracBrowser for help on using the repository browser.