patch-2.1.86 linux/net/x25/x25_dev.c

Next file: linux/net/x25/x25_in.c
Previous file: linux/net/x25/af_x25.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/x25/x25_dev.c linux/net/x25/x25_dev.c
@@ -54,7 +54,7 @@
 	unsigned int lci;
 
 	if (call_in_firewall(PF_X25, skb->dev, skb->data, NULL, &skb) != FW_ACCEPT) {
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 0;
 	}
 
@@ -90,7 +90,7 @@
 /*
 	x25_transmit_clear_request(neigh, lci, 0x0D);
 */
-	kfree_skb(skb, FREE_READ);
+	kfree_skb(skb);
 
 	return 0;
 }
@@ -106,7 +106,7 @@
 	 */
 	if ((neigh = x25_get_neigh(dev)) == NULL) {
 		printk(KERN_DEBUG "X.25: unknown neighbour - %s\n", dev->name);
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 0;
 	}
 
@@ -117,20 +117,20 @@
 
 		case 0x01:
 			x25_link_established(neigh);
-			kfree_skb(skb, FREE_READ);
+			kfree_skb(skb);
 			return 0;
 
 		case 0x02:
 			x25_link_terminated(neigh);
-			kfree_skb(skb, FREE_READ);
+			kfree_skb(skb);
 			return 0;
 
 		case 0x03:
-			kfree_skb(skb, FREE_READ);
+			kfree_skb(skb);
 			return 0;
 
 		default:
-			kfree_skb(skb, FREE_READ);
+			kfree_skb(skb);
 			return 0;
 	}
 }
@@ -146,7 +146,7 @@
 	 */
 	if ((neigh = x25_get_neigh(dev)) == NULL) {
 		printk(KERN_DEBUG "X.25: unknown_neighbour - %s\n", dev->name);
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 0;
 	}
 
@@ -223,11 +223,11 @@
 
 #if defined(CONFIG_LLC) || defined(CONFIG_LLC_MODULE)
 		case ARPHRD_ETHER:
-			kfree_skb(skb, FREE_WRITE);
+			kfree_skb(skb);
 			return;
 #endif
 		default:
-			kfree_skb(skb, FREE_WRITE);
+			kfree_skb(skb);
 			return;
 	}
 

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