patch-2.1.86 linux/net/appletalk/aarp.c

Next file: linux/net/appletalk/ddp.c
Previous file: linux/net/802/psnap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/appletalk/aarp.c linux/net/appletalk/aarp.c
@@ -96,7 +96,7 @@
 	struct sk_buff *skb;
 	
 	while((skb=skb_dequeue(&a->packet_queue))!=NULL)
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 	kfree_s(a,sizeof(*a));
 }
 
@@ -663,7 +663,7 @@
 	 
 	if(dev->type!=ARPHRD_ETHER)
 	{
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 0;
 	}
 	
@@ -673,7 +673,7 @@
 	 
 	if(!skb_pull(skb,sizeof(*ea)))
 	{
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 0;
 	}
 
@@ -686,7 +686,7 @@
 	if(ea->function<AARP_REQUEST || ea->function > AARP_PROBE || ea->hw_len != ETH_ALEN || ea->pa_len != AARP_PA_ALEN ||
 		ea->pa_src_zero != 0 || ea->pa_dst_zero != 0)
 	{
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 0;
 	}
 	
@@ -717,7 +717,7 @@
 	if(ifa==NULL)
 	{
 		restore_flags(flags);
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return 1;		
 	}
 	if(ifa->status&ATIF_PROBE)
@@ -730,7 +730,7 @@
 			 
 			ifa->status|=ATIF_PROBE_FAIL;
 			restore_flags(flags);
-			kfree_skb(skb, FREE_READ);
+			kfree_skb(skb);
 			return 1;		
 		}
 	}				 
@@ -789,7 +789,7 @@
 			break;
 	}
 	restore_flags(flags);
-	kfree_skb(skb, FREE_READ);
+	kfree_skb(skb);
 	return 1;		
 }
 

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