Files
linux/drivers
Dmitry Safonov 383cf6479d tty: Simplify tty->count math in tty_reopen()
commit cf62a1a137 upstream.

As notted by Jiri, tty_ldisc_reinit() shouldn't rely on tty counter.
Simplify math by increasing the counter after reinit success.

Cc: Jiri Slaby <jslaby@suse.com>
Link: lkml.kernel.org/r/<20180829022353.23568-2-dima@arista.com>
Suggested-by: Jiri Slaby <jslaby@suse.com>
Reviewed-by: Jiri Slaby <jslaby@suse.cz>
Tested-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-23 08:10:53 +01:00
..
2018-07-22 14:27:36 +02:00
2018-12-21 14:11:37 +01:00
2018-02-25 11:05:55 +01:00
2017-09-09 17:39:41 +02:00
2019-01-13 10:03:55 +01:00
2018-12-29 13:40:15 +01:00
2016-09-20 20:57:12 +10:00
2018-11-10 07:43:00 -08:00
2018-12-21 14:11:36 +01:00
2018-11-13 11:17:04 -08:00
2018-11-13 11:17:02 -08:00
2018-11-27 16:09:41 +01:00
2018-10-03 17:01:42 -07:00