From: Samuel Ortiz Date: Sat, 17 Mar 2007 02:04:27 +0000 (+0200) Subject: IrDA: irttp_dup spin_lock initialisation X-Git-Tag: v2.6.20.4~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c3f05964e7b82a9965fd4934ba470cf533172ed;p=thirdparty%2Fkernel%2Fstable.git 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 --- diff --git a/net/irda/irttp.c b/net/irda/irttp.c index 03504f3e4990c..470310783aea9 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);