patch-1.3.7 linux/drivers/net/eepro.c
Next file: linux/drivers/net/eexpress.c
Previous file: linux/drivers/net/depca.c
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Wed Jul 5 13:06:26 1995
- Orig file:
v1.3.6/linux/drivers/net/eepro.c
- Orig date:
Fri Jun 30 16:22:27 1995
diff -u --recursive --new-file v1.3.6/linux/drivers/net/eepro.c linux/drivers/net/eepro.c
@@ -1046,13 +1046,14 @@
struct sk_buff *skb;
rcv_size &= 0x3fff;
- skb = dev_alloc_skb(rcv_size);
+ skb = dev_alloc_skb(rcv_size+2);
if (skb == NULL) {
printk("%s: Memory squeeze, dropping packet.\n", dev->name);
lp->stats.rx_dropped++;
break;
}
skb->dev = dev;
+ skb_reserve(skb,2);
insw(ioaddr+IO_PORT, skb_put(skb,rcv_size), (rcv_size + 1) >> 1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this