summaryrefslogtreecommitdiffstats
path: root/net/irda/irttp.c
diff options
context:
space:
mode:
authorG. Liakhovetski <gl@dsa-ac.de>2007-03-17 04:30:03 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2007-03-20 08:09:41 +0100
commit7bb1bbe615de25d955b974cb47d40fa198154bb9 (patch)
tree04b6963a9f0a186022b79e3a788133f0962c7668 /net/irda/irttp.c
parent[IrDA]: Delay needed when uploading firmware chunks (diff)
downloadlinux-7bb1bbe615de25d955b974cb47d40fa198154bb9.tar.xz
linux-7bb1bbe615de25d955b974cb47d40fa198154bb9.zip
[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>
Diffstat (limited to 'net/irda/irttp.c')
-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);