diff options
Diffstat (limited to 'net/appletalk/aarp.c')
-rw-r--r-- | net/appletalk/aarp.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/net/appletalk/aarp.c b/net/appletalk/aarp.c index c02f0d5cb..511c65970 100644 --- a/net/appletalk/aarp.c +++ b/net/appletalk/aarp.c @@ -96,7 +96,7 @@ static void aarp_expire(struct aarp_entry *a) 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)); } @@ -122,7 +122,6 @@ static void aarp_send_query(struct aarp_entry *a) skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length); eah = (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp)); - skb->arp = 1; skb->dev = dev; /* @@ -181,7 +180,6 @@ static void aarp_send_reply(struct device *dev, struct at_addr *us, struct at_ad skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length); eah = (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp)); - skb->arp = 1; skb->dev = dev; /* @@ -243,7 +241,6 @@ void aarp_send_probe(struct device *dev, struct at_addr *us) skb_reserve(skb,dev->hard_header_len+aarp_dl->header_length); eah = (struct elapaarp *)skb_put(skb,sizeof(struct elapaarp)); - skb->arp = 1; skb->dev = dev; /* @@ -666,7 +663,7 @@ static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type if(dev->type!=ARPHRD_ETHER) { - kfree_skb(skb, FREE_READ); + kfree_skb(skb); return 0; } @@ -676,7 +673,7 @@ static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type if(!skb_pull(skb,sizeof(*ea))) { - kfree_skb(skb, FREE_READ); + kfree_skb(skb); return 0; } @@ -689,7 +686,7 @@ static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type 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; } @@ -720,7 +717,7 @@ static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type if(ifa==NULL) { restore_flags(flags); - kfree_skb(skb, FREE_READ); + kfree_skb(skb); return 1; } if(ifa->status&ATIF_PROBE) @@ -733,7 +730,7 @@ static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type ifa->status|=ATIF_PROBE_FAIL; restore_flags(flags); - kfree_skb(skb, FREE_READ); + kfree_skb(skb); return 1; } } @@ -792,7 +789,7 @@ static int aarp_rcv(struct sk_buff *skb, struct device *dev, struct packet_type break; } restore_flags(flags); - kfree_skb(skb, FREE_READ); + kfree_skb(skb); return 1; } |