Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7bb1bbe6 authored by G. Liakhovetski's avatar G. Liakhovetski Committed by David S. Miller
Browse files

[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: default avatarG. Liakhovetski <gl@dsa-ac.de>
Signed-off-by: default avatarSamuel Ortiz <samuel@sortiz.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2e360d81
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1455,6 +1455,7 @@ struct tsap_cb *irttp_dup(struct tsap_cb *orig, void *instance)


	/* Not everything should be copied */
	/* Not everything should be copied */
	new->notify.instance = instance;
	new->notify.instance = instance;
	spin_lock_init(&new->lock);
	init_timer(&new->todo_timer);
	init_timer(&new->todo_timer);


	skb_queue_head_init(&new->rx_queue);
	skb_queue_head_init(&new->rx_queue);