[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1456090717-19913-5-git-send-email-ak77@tnode.com>
Date: Sun, 21 Feb 2016 22:38:33 +0100
From: Andrej Krpic <ak77@...de.com>
To: linux-kernel@...r.kernel.org
Cc: jslaby@...e.com, gregkh@...uxfoundation.org,
Andrej Krpic <ak77@...de.com>
Subject: [PATCH 4/8] tty: n_gsm: send DM response when accessing an invalid channel
Change C/R bit in a response to a UI/UIH frame sent to
non-existing/closed channel. As DM frame type is only valid as a
response, it should be sent using gsm_response function.
Signed-off-by: Andrej Krpic <ak77@...de.com>
---
drivers/tty/n_gsm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
index 05b562d..8551fa4 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -1857,7 +1857,7 @@ static void gsm_queue(struct gsm_mux *gsm)
goto invalid;
#endif
if (dlci == NULL || dlci->state != DLCI_OPEN) {
- gsm_command(gsm, address, DM|PF);
+ gsm_response(gsm, address, DM|PF);
return;
}
dlci->data(dlci, gsm->buf, gsm->len);
--
2.7.0
Powered by blists - more mailing lists