Subject: [PATCH 2/3] [net-2.6] IrDA: irttp_dup spin_lock initialisation

From: Samuel Ortiz <[email-masked]>
Date: Sat, 17 Mar 2007 04:04:27 +0200

Without this initialization one gets

kernel BUG at kernel/rtmutex_common.h:80!

This patch should also be included in the -stable kernel.

Signed-off-by: G. Liakhovetski <gl-o/[email-masked]>
Signed-off-by: Samuel Ortiz <[email-masked]>
---
 net/irda/irttp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/net/irda/irttp.c b/net/irda/irttp.c
index a7486b3..da3f2bc 100644
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -1455,6 +1455,7 @@ struct tsap_cb *irttp_dup(struct tsap_cb *orig, void *instance)
 
 	/* Not everything should be copied */
 	new->notify.instance = instance;
+	spin_lock_init(&new->lock);
 	init_timer(&new->todo_timer);
 
 	skb_queue_head_init(&new->rx_queue);
-- 
1.5.0.2

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV