]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
IrDA: irttp_dup spin_lock initialisation
authorSamuel Ortiz <samuel@sortiz.org>
Sat, 17 Mar 2007 02:04:27 +0000 (04:04 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:26 +0000 (12:49 -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>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/irda/irttp.c

index 03504f3e4990cb82bb8592845d79c7525d172b09..470310783aea956809ddc1bf82d6c6563aff8d33 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);