patch-2.1.86 linux/drivers/net/ethertap.c

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

diff -u --recursive --new-file v2.1.85/linux/drivers/net/ethertap.c linux/drivers/net/ethertap.c
@@ -136,11 +136,11 @@
 	if(tmp)
 	{
 		if(netlink_post(dev->base_addr, tmp)<0)
-			kfree_skb(tmp, FREE_WRITE);
+			kfree_skb(tmp);
 		lp->stats.tx_bytes+=skb->len;
 		lp->stats.tx_packets++;
 	}
-	dev_kfree_skb (skb, FREE_WRITE);
+	dev_kfree_skb (skb);
 	return 0;
 }
 
@@ -160,7 +160,7 @@
 	if(dev==NULL)
 	{
 		printk("ethertap: bad unit!\n");
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 		return -ENXIO;
 	}
 	lp = (struct net_local *)dev->priv;

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