All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb using
@ 2006-06-15 12:13 nilay vaish
  2006-06-15 14:37 ` Randy.Dunlap
  2006-06-15 19:54 ` [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb Anne Thrax
  0 siblings, 2 replies; 3+ messages in thread
From: nilay vaish @ 2006-06-15 12:13 UTC (permalink / raw)
  To: kernel-janitors


[-- Attachment #1.1: Type: text/plain, Size: 863 bytes --]


From: Nilay Vaish <nilayvaish@yahoo.com>

This removes the use of kfree in freeing skbs. 
kfree has been replaced with kfree_skb.

Signed-off-by: <nilayvaish@yahoo.com>
---
--- a/net/ipv4/netfilter/ipt_recent.c   2006-03-20 11:23:29.000000000 +0530
+++ b/net/ipv4/netfilter/ipt_recent.c   2006-06-15 10:52:59.000000000 +0530
@@ -322,7 +322,7 @@ static int ip_recent_ctrl(struct file *f

 kfree(skb->nh.iph);
 out_free_skb:
- kfree(skb);
+ kfree_skb(skb);
 out_free_info:
 kfree(info);




 Send instant messages to your online friends http://in.messenger.yahoo.com 

 Stay connected with your friends even when away from PC.  Link: http://in.mobile.yahoo.com/new/messenger/  
 Send instant messages to your online friends http://in.messenger.yahoo.com 

 Stay connected with your friends even when away from PC.  Link: http://in.mobile.yahoo.com/new/messenger/  

[-- Attachment #1.2: Type: text/html, Size: 964 bytes --]

[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb using
  2006-06-15 12:13 [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb using nilay vaish
@ 2006-06-15 14:37 ` Randy.Dunlap
  2006-06-15 19:54 ` [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb Anne Thrax
  1 sibling, 0 replies; 3+ messages in thread
From: Randy.Dunlap @ 2006-06-15 14:37 UTC (permalink / raw)
  To: kernel-janitors

On Thu, 15 Jun 2006 13:13:56 +0100 (BST) nilay vaish wrote:

> 
> From: Nilay Vaish <nilayvaish@yahoo.com>
> 
> This removes the use of kfree in freeing skbs. 
> kfree has been replaced with kfree_skb.
> 
> Signed-off-by: <nilayvaish@yahoo.com>
> ---
> --- a/net/ipv4/netfilter/ipt_recent.c   2006-03-20 11:23:29.000000000 +0530
> +++ b/net/ipv4/netfilter/ipt_recent.c   2006-06-15 10:52:59.000000000 +0530
> @@ -322,7 +322,7 @@ static int ip_recent_ctrl(struct file *f
> 
>  kfree(skb->nh.iph);
>  out_free_skb:
> - kfree(skb);
> + kfree_skb(skb);
>  out_free_info:
>  kfree(info);

That should have some tabs at the start of each line.
Looks like your mail client or service stripped them out.
Please find and use one that preserves whitespace (tabs/spaces).

---
~Randy
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb
  2006-06-15 12:13 [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb using nilay vaish
  2006-06-15 14:37 ` Randy.Dunlap
@ 2006-06-15 19:54 ` Anne Thrax
  1 sibling, 0 replies; 3+ messages in thread
From: Anne Thrax @ 2006-06-15 19:54 UTC (permalink / raw)
  To: kernel-janitors

> This removes the use of kfree in freeing skbs. 
> kfree has been replaced with kfree_skb.
> 
> Signed-off-by: <nilayvaish@yahoo.com>
> ---
> --- a/net/ipv4/netfilter/ipt_recent.c   2006-03-20 11:23:29.000000000 +0530
> +++ b/net/ipv4/netfilter/ipt_recent.c   2006-06-15 10:52:59.000000000 +0530
> @@ -322,7 +322,7 @@ static int ip_recent_ctrl(struct file *f
> 
>  kfree(skb->nh.iph);
>  out_free_skb:
> - kfree(skb);
> + kfree_skb(skb);
>  out_free_info:
>  kfree(info);

I think that I've already sent in a patch for this. If so, then you need to
not only switch the kfree() with kfree_skb(). The skb being freed was
allocated with kmalloc(), so you need to switch that with alloc_skb().
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-15 19:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 12:13 [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb using nilay vaish
2006-06-15 14:37 ` Randy.Dunlap
2006-06-15 19:54 ` [KJ] [PATCH 2.6.16.20 001/001l] netfilter: frees skb Anne Thrax

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.