[PATCH openEuler-5.10-LTS 111/121] tty: n_gsm: fix malformed counter for out of frame data