Skip to content

Commit 1adf6fe

Browse files
dstarke-siemensgregkh
authored andcommitted
tty: n_gsm: fix missing tty wakeup in convergence layer type 2
gsm_control_modem() informs the virtual tty that more data can be written after receiving a control signal octet via modem status command (MSC). However, gsm_dlci_data() fails to do the same after receiving a control signal octet from the convergence layer type 2 header. Add tty_wakeup() in gsm_dlci_data() for convergence layer type 2 to fix this. Fixes: e1eaea4 ("tty: n_gsm line discipline") Cc: [email protected] Signed-off-by: Daniel Starke <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 317f86a commit 1adf6fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/n_gsm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,7 @@ static void gsm_dlci_data(struct gsm_dlci *dlci, const u8 *data, int clen)
16151615
tty = tty_port_tty_get(port);
16161616
if (tty) {
16171617
gsm_process_modem(tty, dlci, modem, slen);
1618+
tty_wakeup(tty);
16181619
tty_kref_put(tty);
16191620
}
16201621
fallthrough;

0 commit comments

Comments
 (0)