X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fnet%2F8139too.c;h=f6ca99774cc21405f88c5ce72659f3c0af1d9429;hb=1c460afaa550eda5df011168bdda7441a7788c3a;hp=8a5b0d293f7548dbcfaa0e6b9267c21a1d0cf4dc;hpb=e9f76354ce83a20c7768ad37caa033f6506b4f96;p=linux-2.6-omap-h63xx.git diff --git a/drivers/net/8139too.c b/drivers/net/8139too.c index 8a5b0d293f7..f6ca99774cc 100644 --- a/drivers/net/8139too.c +++ b/drivers/net/8139too.c @@ -2009,9 +2009,9 @@ no_early_rx: /* Malloc up new buffer, compatible with net-2e. */ /* Omit the four octet CRC from the length. */ - skb = dev_alloc_skb (pkt_size + 2); + skb = netdev_alloc_skb(dev, pkt_size + NET_IP_ALIGN); if (likely(skb)) { - skb_reserve (skb, 2); /* 16 byte align the IP fields. */ + skb_reserve (skb, NET_IP_ALIGN); /* 16 byte align the IP fields. */ #if RX_BUF_IDX == 3 wrap_copy(skb, rx_ring, ring_offset+4, pkt_size); #else