netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IRDA: fix skb leak in irda_connect_indication
@ 2003-11-01  6:11 Arnaldo Carvalho de Melo
  0 siblings, 0 replies; only message in thread
From: Arnaldo Carvalho de Melo @ 2003-11-01  6:11 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 04:07:41 2003
@@ -248,8 +248,10 @@
 	IRDA_DEBUG(2, "%s(%p)\n", __FUNCTION__, self);
 
 	sk = self->sk;
-	if (sk == NULL)
+	if (sk == NULL) {
+		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] only message in thread

only message in thread, other threads:[~2003-11-01  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-01  6:11 [PATCH] IRDA: fix skb leak in irda_connect_indication Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).