public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] n_gsm: fix the wrong FCS handling
@ 2011-07-07 14:16 Alan Cox
  2011-07-07 14:55 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Alan Cox @ 2011-07-07 14:16 UTC (permalink / raw)
  To: greg, stable, linux-serial

From: \"Du, Alek\" <alek.du@intel.com>

FCS could be GSM0_SOF, so will break state machine...

[This byte isn't quoted in any way so a SOF here doesn't imply an error
 occurred.]

Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>

[Trivial but best backported once its in 3.1rc I think]
---

 drivers/tty/n_gsm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
index ec37f57..8a50e4e 100644
--- a/drivers/tty/n_gsm.c
+++ b/drivers/tty/n_gsm.c
@@ -1885,10 +1885,6 @@ static void gsm0_receive(struct gsm_mux *gsm, unsigned char c)
 		break;
 	case GSM_FCS:		/* FCS follows the packet */
 		gsm->received_fcs = c;
-		if (c == GSM0_SOF) {
-			gsm->state = GSM_SEARCH;
-			break;
-		}
 		gsm_queue(gsm);
 		gsm->state = GSM_SSOF;
 		break;


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-07 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 14:16 [PATCH] n_gsm: fix the wrong FCS handling Alan Cox
2011-07-07 14:55 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox