Skip to contentSkip to conversation

n_gsm: fix the wrong FCS handling

PATCH In review Alan Cox 2 participants 2 messages Jul 7, 2011 TTY layer and serial drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 n_gsm: fix the wrong FCS handling

From: \"Du, Alek\" <[email protected]>

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.]

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

 drivers/tty/n_gsm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/tty/n_gsm.c +0 -4
index ec37f57..8a50e4e 100644
@@ -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;
#1 lore raw
Quoted 1 line · Alan Cox

From: \"Du, Alek\" <[email protected]>

I don't think git would like those \ characters, would it?

Quoted 9 lines

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.]

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

So should I mark it for stable for 3.0?

thanks,

greg k-h