[IrDA]: irttp_dup spin_lock initialisation
authorG. Liakhovetski <gl@dsa-ac.de>
Sat, 17 Mar 2007 03:30:03 +0000 (20:30 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 20 Mar 2007 07:09:41 +0000 (00:09 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/irttp.c

index a7486b3bddcb0150f7afadcab71ad40d85d6dec6..da3f2bc1b6f62abceb470f2f6407c3a7f680e307 100644 (file)
@@ -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);