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

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

diff -u --recursive --new-file v2.1.85/linux/net/ipv4/ip_input.c linux/net/ipv4/ip_input.c
@@ -257,7 +257,7 @@
         {
 		int ret = ip_fw_demasquerade(&skb);
 		if (ret < 0) {
-			kfree_skb(skb, FREE_WRITE);
+			kfree_skb(skb);
 			return 0;
 		}
 
@@ -267,7 +267,7 @@
 			dst_release(skb->dst);
 			skb->dst = NULL;
 			if (ip_route_input(skb, iph->daddr, iph->saddr, iph->tos, skb->dev)) {
-				kfree_skb(skb, FREE_WRITE);
+				kfree_skb(skb);
 				return 0;
 			}
 			return skb->dst->input(skb);
@@ -312,7 +312,7 @@
 						if(ipsec_sk_policy(raw_sk,skb1))	
 							raw_rcv(raw_sk, skb1);
 						else
-							kfree_skb(skb1, FREE_WRITE);
+							kfree_skb(skb1);
 					}
 				}
 				raw_sk = sknext;
@@ -375,12 +375,12 @@
 		if(ipsec_sk_policy(raw_sk, skb))
 			raw_rcv(raw_sk, skb);
 		else
-			kfree_skb(skb, FREE_WRITE);
+			kfree_skb(skb);
 	}
 	else if (!flag)		/* Free and report errors */
 	{
 		icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PROT_UNREACH, 0);	
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 	}
 
 	return(0);
@@ -503,7 +503,7 @@
 inhdr_error:
 	ip_statistics.IpInHdrErrors++;
 drop:
-        kfree_skb(skb, FREE_WRITE);
+        kfree_skb(skb);
         return(0);
 }
 

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