[PATCH openEuler-5.10 110/120] tty: n_gsm: fix malformed counter for out of frame data