patch-1.3.6 linux/drivers/net/3c501.c
Next file: linux/drivers/net/3c505.c
Previous file: linux/drivers/char/console.c
Back to the patch index
Back to the overall index
-  Lines: 26
-  Date:
Thu Jun 29 19:18:49 1995
-  Orig file: 
v1.3.5/linux/drivers/net/3c501.c
-  Orig date: 
Tue Jun  6 11:22:06 1995
diff -u --recursive --new-file v1.3.5/linux/drivers/net/3c501.c linux/drivers/net/3c501.c
@@ -572,7 +572,7 @@
      
     outb(AX_SYS, AX_CMD);
 
-    skb = alloc_skb(pkt_len, GFP_ATOMIC);
+    skb = dev_alloc_skb(pkt_len);
     /*
      *	Start of frame
      */
@@ -582,7 +582,6 @@
 	lp->stats.rx_dropped++;
 	return;
     } else {
-	skb->len = pkt_len;
 	skb->dev = dev;
 
 	/*
@@ -591,7 +590,7 @@
 	 *	receive mode.
 	 */
 	 
-	insb(DATAPORT, skb->data, pkt_len);
+	insb(DATAPORT, skb_put(skb,pkt_len), pkt_len);
 	skb->protocol=eth_type_trans(skb,dev);
 	netif_rx(skb);
 	lp->stats.rx_packets++;
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