Thread (1 message) 1 message, 1 author, 2007-03-19
STALE7099d

[patch 24/31] IrDA: irttp_dup spin_lock initialisation

From: Greg KH <gregkh@suse.de>
Date: 2007-03-19 21:46:04
Also in: lkml

-stable review patch.  If anyone has any objections, please let us know.

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

From: Samuel Ortiz <redacted>

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 <redacted>
Signed-off-by: Samuel Ortiz <redacted>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
 net/irda/irttp.c |    1 +
 1 file changed, 1 insertion(+)
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -1455,6 +1455,7 @@ struct tsap_cb *irttp_dup(struct tsap_cb
 
 	/* 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);
-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help