Skip to content

Commit

Permalink
[IrDA]: irttp_dup spin_lock initialisation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
G. Liakhovetski authored and David S. Miller committed Mar 20, 2007
1 parent 2e360d8 commit 7bb1bbe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/irda/irttp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7bb1bbe

Please sign in to comment.