[PATCH 5.17 207/225] tty: n_gsm: fix malformed counter for out of frame data