[PATCH 6.4 218/292] tty: fix hang on tty device with no_room set