From 6c3f05964e7b82a9965fd4934ba470cf533172ed Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Sat, 17 Mar 2007 04:04:27 +0200 Subject: [PATCH] IrDA: irttp_dup spin_lock initialisation 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 Signed-off-by: Samuel Ortiz Cc: David Miller Signed-off-by: Greg Kroah-Hartman --- net/irda/irttp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/irda/irttp.c b/net/irda/irttp.c index 03504f3e4990..470310783aea 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); -- 2.39.5