Re: [PATCHv2 4/4] tty: Simplify tty->count math in tty_reopen()

Jiri Slaby
2018-09-04T09:03:23Z

On 09/03/2018, 06:52 PM, Dmitry Safonov wrote:
> As noted by Jiri, tty_ldisc_reinit() shouldn't rely on tty counter.
> Simplify math by increasing the counter after reinit success.
>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Jiri Slaby <jslaby@suse.com>

Reviewed-by: Jiri Slaby <jslaby@suse.cz>

> Link: lkml.kernel.org/r/<20180829022353.23568-2-dima@arista.com>
> Suggested-by: Jiri Slaby <jslaby@suse.com>
> Signed-off-by: Dmitry Safonov <dima@arista.com>

thanks,
--
js
suse labs