All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix skb leak in af_irda.c
@ 2003-11-01  5:19 Arnaldo Carvalho de Melo
  2003-11-04 22:42 ` Jean Tourrilhes
  0 siblings, 1 reply; 5+ messages in thread
From: Arnaldo Carvalho de Melo @ 2003-11-01  5:19 UTC (permalink / raw)
  To: David S. Miller
  Cc: Jean Tourrilhes, Linux Networking Development Mailing List

Hi David, Jean,

	Please apply.

- Arnaldo

===== net/irda/af_irda.c 1.46 vs edited =====
--- 1.46/net/irda/af_irda.c	Sat Aug 30 23:15:30 2003
+++ edited/net/irda/af_irda.c	Sat Nov  1 03:18:02 2003
@@ -187,12 +187,12 @@
 
 	IRDA_DEBUG(2, "%s(%p)\n", __FUNCTION__, self);
 
+	dev_kfree_skb(skb);
+	// Should be ??? skb_queue_tail(&sk->sk_receive_queue, skb);
+
 	sk = self->sk;
 	if (sk == NULL)
 		return;
-
-	dev_kfree_skb(skb);
-	// Should be ??? skb_queue_tail(&sk->sk_receive_queue, skb);
 
 	/* How much header space do we need to reserve */
 	self->max_header_size = max_header_size;

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

* Re: [PATCH] fix skb leak in af_irda.c
  2003-11-01  5:19 [PATCH] fix skb leak in af_irda.c Arnaldo Carvalho de Melo
@ 2003-11-04 22:42 ` Jean Tourrilhes
  2003-11-04 23:30   ` David S. Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Tourrilhes @ 2003-11-04 22:42 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo; +Cc: Linux Networking Development Mailing List

On Sat, Nov 01, 2003 at 03:19:31AM -0200, Arnaldo Carvalho de Melo wrote:
> Hi David, Jean,
> 
> 	Please apply.
> 
> - Arnaldo

	Hum... It looks as if it didn't made into the kernel. Ok, I'll
add that in my patch queue and push that for you ;-)
	Have fun...

	Jean

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

* Re: [PATCH] fix skb leak in af_irda.c
  2003-11-04 22:42 ` Jean Tourrilhes
@ 2003-11-04 23:30   ` David S. Miller
  2003-11-05  0:29     ` Jean Tourrilhes
  0 siblings, 1 reply; 5+ messages in thread
From: David S. Miller @ 2003-11-04 23:30 UTC (permalink / raw)
  To: jt; +Cc: jt, acme, netdev

On Tue, 4 Nov 2003 14:42:01 -0800
Jean Tourrilhes <jt@bougret.hpl.hp.com> wrote:

> On Sat, Nov 01, 2003 at 03:19:31AM -0200, Arnaldo Carvalho de Melo wrote:
> > Hi David, Jean,
> > 
> > 	Please apply.
> 
> 	Hum... It looks as if it didn't made into the kernel. Ok, I'll
> add that in my patch queue and push that for you ;-)

It isn't in because I was waiting for an acknowledgment
from you Jean :-)

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

* Re: [PATCH] fix skb leak in af_irda.c
  2003-11-05  0:29     ` Jean Tourrilhes
@ 2003-11-05  0:28       ` David S. Miller
  0 siblings, 0 replies; 5+ messages in thread
From: David S. Miller @ 2003-11-05  0:28 UTC (permalink / raw)
  To: jt; +Cc: jt, acme, netdev

On Tue, 4 Nov 2003 16:29:30 -0800
Jean Tourrilhes <jt@bougret.hpl.hp.com> wrote:

> 	I personally would prefer the following patch. The difference
> is mostly cosmetic. Tested with 2.6.0-test9. Anyway, both patches are
> obviously correct.

Applied, with attribution also given to Arnaldo.

Thanks.

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

* Re: [PATCH] fix skb leak in af_irda.c
  2003-11-04 23:30   ` David S. Miller
@ 2003-11-05  0:29     ` Jean Tourrilhes
  2003-11-05  0:28       ` David S. Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Jean Tourrilhes @ 2003-11-05  0:29 UTC (permalink / raw)
  To: David S. Miller; +Cc: acme, netdev

On Tue, Nov 04, 2003 at 03:30:42PM -0800, David S. Miller wrote:
> On Tue, 4 Nov 2003 14:42:01 -0800
> Jean Tourrilhes <jt@bougret.hpl.hp.com> wrote:
> 
> > On Sat, Nov 01, 2003 at 03:19:31AM -0200, Arnaldo Carvalho de Melo wrote:
> > > Hi David, Jean,
> > > 
> > > 	Please apply.
> > 
> > 	Hum... It looks as if it didn't made into the kernel. Ok, I'll
> > add that in my patch queue and push that for you ;-)
> 
> It isn't in because I was waiting for an acknowledgment
> from you Jean :-)

	*Ahem*... Sorry about that...
	I personally would prefer the following patch. The difference
is mostly cosmetic. Tested with 2.6.0-test9. Anyway, both patches are
obviously correct.
	Thanks for keeping on top of those things...

	Jean

---------------------------------------------------------

diff -u -p linux/net/irda/af_irda.d4.c linux/net/irda/af_irda.c
--- linux/net/irda/af_irda.d4.c	Tue Nov  4 14:37:25 2003
+++ linux/net/irda/af_irda.c	Tue Nov  4 14:39:10 2003
@@ -188,8 +188,10 @@ static void irda_connect_confirm(void *i
 	IRDA_DEBUG(2, "%s(%p)\n", __FUNCTION__, self);
 
 	sk = self->sk;
-	if (sk == NULL)
+	if (sk == NULL) {
+		dev_kfree_skb(skb);
 		return;
+	}
 
 	dev_kfree_skb(skb);
 	// Should be ??? skb_queue_tail(&sk->sk_receive_queue, skb);
@@ -248,8 +250,10 @@ static void irda_connect_indication(void
 	IRDA_DEBUG(2, "%s(%p)\n", __FUNCTION__, self);
 
 	sk = self->sk;
-	if (sk == NULL)
+	if (sk == NULL) {
+		dev_kfree_skb(skb);
 		return;
+	}
 
 	/* How much header space do we need to reserve */
 	self->max_header_size = max_header_size;

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

end of thread, other threads:[~2003-11-05  0:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-01  5:19 [PATCH] fix skb leak in af_irda.c Arnaldo Carvalho de Melo
2003-11-04 22:42 ` Jean Tourrilhes
2003-11-04 23:30   ` David S. Miller
2003-11-05  0:29     ` Jean Tourrilhes
2003-11-05  0:28       ` David S. Miller

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.