patch-1.3.7 linux/drivers/net/3c501.c

Next file: linux/drivers/net/3c505.c
Previous file: linux/drivers/block/sonycd535.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.6/linux/drivers/net/3c501.c linux/drivers/net/3c501.c
@@ -572,7 +572,7 @@
      
     outb(AX_SYS, AX_CMD);
 
-    skb = dev_alloc_skb(pkt_len);
+    skb = dev_alloc_skb(pkt_len+2);
     /*
      *	Start of frame
      */
@@ -582,6 +582,7 @@
 	lp->stats.rx_dropped++;
 	return;
     } else {
+    	skb_reserve(skb,2);	/* Force 16 byte alignment */
 	skb->dev = dev;
 
 	/*

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