Files
linux/drivers/tty
Arnd Bergmann c13c5c7e88 tty: fix __tty_insert_flip_char regression
commit 8a5a90a2a4 upstream.

Sergey noticed a small but fatal mistake in __tty_insert_flip_char,
leading to an oops in an interrupt handler when using any serial
port.

The problem is that I accidentally took the tty_buffer pointer
before calling __tty_buffer_request_room(), which replaces the
buffer. This moves the pointer lookup to the right place after
allocating the new buffer space.

Fixes: 979990c628 ("tty: improve tty_insert_flip_char() fast path")
Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-27 11:00:13 +02:00
..
2015-03-31 12:04:13 +02:00
2011-03-31 11:26:23 -03:00
2016-06-01 12:15:52 -07:00
2016-06-01 12:15:52 -07:00
2015-10-17 21:11:29 -07:00
2015-10-17 21:14:06 -07:00
2015-11-20 16:19:54 -08:00
2015-10-17 21:32:21 -07:00