[PATCH 4.14 129/173] tty: fix termios input-speed encoding