Skip to content

Commit 7bb1bbe

Browse files
G. LiakhovetskiDavid S. Miller
authored andcommitted
[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>
1 parent 2e360d8 commit 7bb1bbe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎net/irda/irttp.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,7 @@ struct tsap_cb *irttp_dup(struct tsap_cb *orig, void *instance)
14551455

14561456
/* Not everything should be copied */
14571457
new->notify.instance = instance;
1458+
spin_lock_init(&new->lock);
14581459
init_timer(&new->todo_timer);
14591460

14601461
skb_queue_head_init(&new->rx_queue);

0 commit comments

Comments
 (0)