[lvc-project] [PATCH 2/2] tty: n_gsm: issue mutex_destroy() from gsm_dlci_free()

Dmitry Antipov dmantipov at yandex.ru
Mon Jul 6 17:20:16 MSK 2026


Although a no-op unless CONFIG_DEBUG_MUTEXES is enabled, add
missing call to 'mutex_destroy()' in 'gsm_dlci_free()'.

Signed-off-by: Dmitry Antipov <dmantipov at yandex.ru>
---
 drivers/tty/n_gsm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
index ce447477ccf3..548470796374 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -2698,6 +2698,7 @@ static void gsm_dlci_free(struct tty_port *port)
 	kfifo_free(&dlci->fifo);
 	while ((dlci->skb = skb_dequeue(&dlci->skb_list)))
 		dev_kfree_skb(dlci->skb);
+	mutex_destroy(&dlci->mutex);
 	kfree(dlci);
 }
 
-- 
2.55.0




More information about the lvc-project mailing list