patch-2.1.86 linux/net/core/dev.c

Next file: linux/net/core/dst.c
Previous file: linux/net/core/datagram.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/core/dev.c linux/net/core/dev.c
@@ -332,7 +332,7 @@
 default_rebuild_header(struct sk_buff *skb)
 {
 	printk(KERN_DEBUG "%s: default_rebuild_header called -- BUG!\n", skb->dev ? skb->dev->name : "NULL!!!");
-	kfree_skb(skb, FREE_WRITE);
+	kfree_skb(skb);
 	return 1;
 }
 
@@ -595,7 +595,7 @@
 	}
 	end_bh_atomic();
 
-	kfree_skb(skb, FREE_WRITE);
+	kfree_skb(skb);
 
 #ifdef CONFIG_NET_PROFILE
 	NET_PROFILE_LEAVE(dev_queue_xmit);
@@ -706,7 +706,7 @@
 				return;
 			}
 			atomic_inc(&netdev_rx_dropped);
-			kfree_skb(skb, FREE_READ);
+			kfree_skb(skb);
 			return;
 		}
 #ifdef CONFIG_NET_HW_FLOWCONTROL
@@ -721,7 +721,7 @@
 	}
 	netdev_dropping = 1;
 	atomic_inc(&netdev_rx_dropped);
-	kfree_skb(skb, FREE_READ);
+	kfree_skb(skb);
 }
 
 #ifdef CONFIG_BRIDGE
@@ -818,9 +818,9 @@
 
 #ifdef CONFIG_CPU_IS_SLOW
 		if (ave_busy > 128*16) {
-			kfree_skb(skb, FREE_WRITE);
+			kfree_skb(skb);
 			while ((skb = skb_dequeue(&backlog)) != NULL)
-				kfree_skb(skb, FREE_WRITE);
+				kfree_skb(skb);
 			break;
 		}
 #endif
@@ -864,7 +864,7 @@
 
 		if (skb->mac.raw < skb->head || skb->mac.raw > skb->data) {
 			printk(KERN_CRIT "%s: wrong mac.raw ptr, proto=%04x\n", skb->dev->name, skb->protocol);
-			kfree_skb(skb, FREE_READ);
+			kfree_skb(skb);
 			continue;
 		}
 
@@ -926,7 +926,7 @@
 		 */
 	 
 		else {
-			kfree_skb(skb, FREE_WRITE);
+			kfree_skb(skb);
 		}
   	}	/* End of queue loop */
   	

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