diff options
| author | Dmitry Safonov <[email protected]> | 2018-11-01 00:24:49 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-12-05 12:16:33 +0100 |
| commit | cf62a1a13749db0d32b5cdd800ea91a4087319de (patch) | |
| tree | 6e0b9353bf06d6e167bd9fcff0da3eb00605182d /scripts | |
| parent | c96cf923a98d1b094df9f0cf97a83e118817e31b (diff) | |
tty: Simplify tty->count math in tty_reopen()
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 <[email protected]>
Link: lkml.kernel.org/r/<[email protected]>
Suggested-by: Jiri Slaby <[email protected]>
Reviewed-by: Jiri Slaby <[email protected]>
Tested-by: Mark Rutland <[email protected]>
Signed-off-by: Dmitry Safonov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions