* [patch 24/31] IrDA: irttp_dup spin_lock initialisation
[not found] ` <20070319213647.GB9261@kroah.com>
@ 2007-03-19 21:40 ` Greg KH
0 siblings, 0 replies; only message in thread
From: Greg KH @ 2007-03-19 21:40 UTC (permalink / raw)
To: linux-kernel, stable, David S. Miller
Cc: Justin Forbes, Zwane Mwaikambo, Theodore Ts'o, Randy Dunlap,
Dave Jones, Chuck Wolber, Chris Wedgwood, Michael Krufky,
Chuck Ebbert, torvalds, akpm, alan, netdev, Guennadi Liakhovetski,
irda-users, Samuel Ortiz
[-- Attachment #1: irda-irttp_dup-spin_lock-initialisation.patch --]
[-- Type: text/plain, Size: 817 bytes --]
-stable review patch. If anyone has any objections, please let us know.
------------------
From: Samuel Ortiz <samuel@sortiz.org>
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@dsa-ac.de>
Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
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);
--
^ permalink raw reply [flat|nested] only message in thread