[PATCH 5.17 078/114] tty: n_gsm: fix invalid gsmtty_write_room() result