patch-2.4.23 linux-2.4.23/drivers/net/seeq8005.c

Next file: linux-2.4.23/drivers/net/sis900.c
Previous file: linux-2.4.23/drivers/net/r8169.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/net/seeq8005.c linux-2.4.23/drivers/net/seeq8005.c
@@ -379,7 +379,7 @@
 {
 	struct net_local *lp = (struct net_local *)dev->priv;
 	short length = skb->len;
-	unsigned char *buf = skb->data;
+	unsigned char *buf;
 
 	if(length < ETH_ZLEN)
 	{
@@ -388,6 +388,8 @@
 			return 0;
 		length = ETH_ZLEN;
 	}
+	buf = skb->data;
+
 	/* Block a timer-based transmit from overlapping */
 	netif_stop_queue(dev);
 	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)