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 227358e commit c29f192Copy full SHA for c29f192
drivers/tty/n_gsm.c
@@ -3156,6 +3156,8 @@ static void gsm_cleanup_mux(struct gsm_mux *gsm, bool disc)
3156
mutex_unlock(&gsm->mutex);
3157
/* Now wipe the queues */
3158
tty_ldisc_flush(gsm->tty);
3159
+
3160
+ guard(spinlock_irqsave)(&gsm->tx_lock);
3161
list_for_each_entry_safe(txq, ntxq, &gsm->tx_ctrl_list, list)
3162
kfree(txq);
3163
INIT_LIST_HEAD(&gsm->tx_ctrl_list);
0 commit comments