patch-2.0.30 linux/drivers/net/tulip.c

Next file: linux/drivers/net/wavelan.c
Previous file: linux/drivers/net/sdla.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.29/linux/drivers/net/tulip.c linux/drivers/net/tulip.c
@@ -817,6 +817,7 @@
 			if (!tp->port_fix) dev->if_port ++;
 			tp->port_select(dev);
 			dev->trans_start = jiffies;
+			dev_kfree_skb(skb, FREE_WRITE);
 			return(0);
 		}
 		printk("%s: transmit timed out, status %8.8x,"
@@ -846,6 +847,7 @@
 
 		dev->tbusy=0;
 		dev->trans_start = jiffies;
+		dev_kfree_skb(skb, FREE_WRITE);
 		return(0);
 	}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov