[PATCH 5.17 206/225] tty: n_gsm: fix frame reception handling