Subject: [PATCH] IRDA: fix skb leak in irda_connect_indication

From: Arnaldo Carvalho de Melo <[email-masked]>
Date: Sat, 1 Nov 2003 04:11:24 -0200

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;