aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Ortiz <samuel@sortiz.org>2007-03-17 04:04:27 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2007-03-23 12:49:26 -0700
commit6c3f05964e7b82a9965fd4934ba470cf533172ed (patch)
tree5dc93be019193d2946db67ce6915e25aed95e036
parente7afe7add33b3c467999376ac22d819fa7bcade8 (diff)
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 <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>
-rw-r--r--net/irda/irttp.c1
1 files changed, 1 insertions, 0 deletions
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);