Subject: [PATCH] fix skb leak in af_irda.c

From: Arnaldo Carvalho de Melo <[email-masked]>
Date: Sat, 1 Nov 2003 03:19:31 -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 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;