From d19b7b09a83e1ef419a6bbe960a39b66c1d07e80 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Wed, 25 Apr 2007 21:57:52 +0200 Subject: [PATCH] IrDA: irttp_dup spin_lock initialisation Without this initialization one gets kernel BUG at kernel/rtmutex_common.h:80! Signed-off-by: G. Liakhovetski Signed-off-by: Samuel Ortiz Acked-by: David Miller Signed-off-by: Adrian Bunk --- net/irda/irttp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/irda/irttp.c b/net/irda/irttp.c index 5fc3597e5528..3852db56893c 100644 --- a/net/irda/irttp.c +++ b/net/irda/irttp.c @@ -1454,6 +1454,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