patch-2.1.86 linux/net/ipv4/arp.c

Next file: linux/net/ipv4/icmp.c
Previous file: linux/net/ipv4/af_inet.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/ipv4/arp.c linux/net/ipv4/arp.c
@@ -295,7 +295,7 @@
 static void arp_error_report(struct neighbour *neigh, struct sk_buff *skb)
 {
 	icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0);
-	kfree_skb(skb, FREE_WRITE);
+	kfree_skb(skb);
 }
 
 static void arp_solicit(struct neighbour *neigh, struct sk_buff *skb)
@@ -363,7 +363,7 @@
 
 	if (!skb->dst) {
 		printk(KERN_DEBUG "arp_find is called with dst==NULL\n");
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 		return 1;
 	}
 
@@ -384,7 +384,7 @@
 			return 0;
 		}
 	} else
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 	neigh_release(n);
 	end_bh_atomic();
 	return 1;
@@ -673,7 +673,7 @@
 	}
 
 out:
-	kfree_skb(skb, FREE_READ);
+	kfree_skb(skb);
 	return 0;
 }
 

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