aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <gl@dsa-ac.de>2007-04-25 21:57:52 +0200
committerAdrian Bunk <bunk@stusta.de>2007-04-25 21:57:52 +0200
commitd19b7b09a83e1ef419a6bbe960a39b66c1d07e80 (patch)
tree72170cd32f7e25ba7046ae2adbf911e166d36564 /net
parent15485523f2deacb7663af61538fbd786ebc1f7db (diff)
IrDA: irttp_dup spin_lock initialisation
Without this initialization one gets kernel BUG at kernel/rtmutex_common.h:80! Signed-off-by: G. Liakhovetski <gl@dsa-ac.de> Signed-off-by: Samuel Ortiz <samuel@sortiz.org> Acked-by: David Miller <davem@davemloft.net> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to '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 5fc3597e552..3852db56893 100644
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -1454,6 +1454,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);