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

Next file: linux-2.4.23/drivers/net/ibm_emac/ibm_emac.h
Previous file: linux-2.4.23/drivers/net/fealnx.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.22/drivers/net/fmv18x.c linux-2.4.23/drivers/net/fmv18x.c
@@ -370,7 +370,7 @@
 	struct net_local *lp = dev->priv;
 	int ioaddr = dev->base_addr;
 	short length = skb->len;
-	unsigned char *buf = skb->data;
+	unsigned char *buf;
 	unsigned long flags;
 
 	/* Block a transmit from overlapping.  */
@@ -389,6 +389,7 @@
 			return 0;
 		length = ETH_ZLEN;
 	}
+	buf = skb->data;
 	
 	if (net_debug > 4)
 		printk("%s: Transmitting a packet of length %lu.\n", dev->name,

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