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 3e0f5d4 commit 873cd5aCopy full SHA for 873cd5a
drivers/tty/n_gsm.c
@@ -2081,8 +2081,10 @@ static void gsm_cleanup_mux(struct gsm_mux *gsm, bool disc)
2081
2082
/* Free up any link layer users and finally the control channel */
2083
for (i = NUM_DLCI - 1; i >= 0; i--)
2084
- if (gsm->dlci[i])
+ if (gsm->dlci[i]) {
2085
gsm_dlci_release(gsm->dlci[i]);
2086
+ gsm->dlci[i] = NULL;
2087
+ }
2088
mutex_unlock(&gsm->mutex);
2089
/* Now wipe the queues */
2090
list_for_each_entry_safe(txq, ntxq, &gsm->tx_list, list)
0 commit comments