Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f956052 commit 9462f4cCopy full SHA for 9462f4c
drivers/tty/n_gsm.c
@@ -3157,6 +3157,8 @@ static void gsm_cleanup_mux(struct gsm_mux *gsm, bool disc)
3157
mutex_unlock(&gsm->mutex);
3158
/* Now wipe the queues */
3159
tty_ldisc_flush(gsm->tty);
3160
+
3161
+ guard(spinlock_irqsave)(&gsm->tx_lock);
3162
list_for_each_entry_safe(txq, ntxq, &gsm->tx_ctrl_list, list)
3163
kfree(txq);
3164
INIT_LIST_HEAD(&gsm->tx_ctrl_list);
0 commit comments