patch-1.3.6 linux/drivers/net/apricot.c
Next file: linux/drivers/net/arcnet.c
Previous file: linux/drivers/net/8390.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Thu Jun 29 19:18:50 1995
- Orig file:
v1.3.5/linux/drivers/net/apricot.c
- Orig date:
Tue Jun 6 11:22:07 1995
diff -u --recursive --new-file v1.3.5/linux/drivers/net/apricot.c linux/drivers/net/apricot.c
@@ -342,7 +342,7 @@
{
/* a good frame */
int pkt_len = lp->scb.rfd->count & 0x3fff;
- struct sk_buff *skb = alloc_skb(pkt_len, GFP_ATOMIC);
+ struct sk_buff *skb = dev_alloc_skb(pkt_len);
frames++;
@@ -353,9 +353,8 @@
break;
}
- skb->len = pkt_len;
skb->dev = dev;
- memcpy(skb->data, lp->scb.rfd->data, pkt_len);
+ memcpy(skb_put(skb,pkt_len), lp->scb.rfd->data, pkt_len);
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