summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorG. Liakhovetski <gl@dsa-ac.de>2007-03-16 20:30:03 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-03-20 00:09:41 -0700
commit7bb1bbe615de25d955b974cb47d40fa198154bb9 (patch)
tree04b6963a9f0a186022b79e3a788133f0962c7668
parent2e360d81ea1fe1a7701e05cdefd3a91c11c3b13f (diff)
downloadlinux-7bb1bbe615de25d955b974cb47d40fa198154bb9.tar.bz2
[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> Signed-off-by: David S. Miller <davem@davemloft.net>
-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 a7486b3bddcb..da3f2bc1b6f6 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);