[PATCH AUTOSEL 4.18 37/92] tty: fix termios input-speed encoding

2018-09-14 Thread Sasha Levin
From: Johan Hovold [ Upstream commit fada18c48d774b9e837928ecdce6a5d5fdd11ee7 ] Make sure to clear the CIBAUD bits before OR-ing the new mask when encoding the termios input baud rate. This could otherwise lead to an incorrect input rate being reported back and incidentally set on subsequent

[PATCH AUTOSEL 4.18 37/92] tty: fix termios input-speed encoding

2018-09-14 Thread Sasha Levin
From: Johan Hovold [ Upstream commit fada18c48d774b9e837928ecdce6a5d5fdd11ee7 ] Make sure to clear the CIBAUD bits before OR-ing the new mask when encoding the termios input baud rate. This could otherwise lead to an incorrect input rate being reported back and incidentally set on subsequent