patch-1.3.6 linux/drivers/net/eexpress.c
Next file: linux/drivers/net/eql.c
Previous file: linux/drivers/net/eepro.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Thu Jun 29 19:18:50 1995
- Orig file:
v1.3.5/linux/drivers/net/eexpress.c
- Orig date:
Tue Jun 6 11:22:08 1995
diff -u --recursive --new-file v1.3.5/linux/drivers/net/eexpress.c linux/drivers/net/eexpress.c
@@ -941,18 +941,17 @@
struct sk_buff *skb;
pkt_len &= 0x3fff;
- skb = alloc_skb(pkt_len, GFP_ATOMIC);
+ skb = dev_alloc_skb(pkt_len);
if (skb == NULL) {
printk("%s: Memory squeeze, dropping packet.\n", dev->name);
lp->stats.rx_dropped++;
break;
}
- skb->len = pkt_len;
skb->dev = dev;
outw(data_buffer_addr + 10, ioaddr + READ_PTR);
- insw(ioaddr, skb->data, (pkt_len + 1) >> 1);
+ insw(ioaddr, skb_put(skb,pkt_len), (pkt_len + 1) >> 1);
skb->protocol=eth_type_trans(skb,dev);
netif_rx(skb);
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