patch-2.1.86 linux/net/ipv6/ip6_input.c

Next file: linux/net/ipv6/ip6_output.c
Previous file: linux/net/ipv6/ip6_fw.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/ipv6/ip6_input.c linux/net/ipv6/ip6_input.c
@@ -121,7 +121,7 @@
 				    ICMPV6_UNK_OPTION, pos, skb->dev);
 	};
 	
-	kfree_skb(skb, FREE_READ);
+	kfree_skb(skb);
 	return 0;
 }
 
@@ -183,7 +183,7 @@
 	int pkt_len;
 
 	if (skb->pkt_type == PACKET_OTHERHOST) {
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 0;
 	}
 
@@ -204,7 +204,7 @@
 	return 0;
 err:
 	ipv6_statistics.Ip6InHdrErrors++;
-	kfree_skb(skb, FREE_READ);
+	kfree_skb(skb);
 	return 0;
 }
 
@@ -358,7 +358,7 @@
 		offset = nhptr - (u8*) hdr;
 		icmpv6_send(skb, ICMPV6_PARAMPROB, ICMPV6_UNK_NEXTHDR,
 			    offset, skb->dev);
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 	}
 
 	return 0;
@@ -407,7 +407,7 @@
 	}
 
 	if (discard)
-		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