summaryrefslogtreecommitdiff
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorDmitry Safonov <dima@arista.com>2018-11-01 00:24:49 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-23 08:10:53 +0100
commit383cf6479d489b7becc64b4860cef94dfd19ca5e (patch)
tree7b81e36e48b4ff108a17cb68cef0153fa6fdd40e /fs/proc/array.c
parentb4ff011f6748d5bfb217abce7055a6101e443322 (diff)
tty: Simplify tty->count math in tty_reopen()
commit cf62a1a13749db0d32b5cdd800ea91a4087319de 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>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions