Message ID | 20230817093231.2317-5-daniel.starke@siemens.com |
---|---|
State | New |
Headers | show |
Series | [v6,1/9] tty: n_gsm: add restart flag to DLC specific ioctl config | expand |
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index d28465f142a8..18f022f75831 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -2455,8 +2455,10 @@ static void gsm_dlci_command(struct gsm_dlci *dlci, const u8 *data, int len) data += dlen; /* Malformed command? */ - if (clen > len) + if (clen > len) { + dlci->gsm->malformed++; return; + } if (command & 1) gsm_control_message(dlci->gsm, command, data, clen);