[PATCH 4.14 47/78] tty: n_gsm: fix malformed counter for out of frame data