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

From: Jiri Slaby
Date: Tue Sep 04 2018 - 05:03:23 EST


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@xxxxxxxxxxxxxxxxxxx>
> Cc: Jiri Slaby <jslaby@xxxxxxxx>

Reviewed-by: Jiri Slaby <jslaby@xxxxxxx>

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

thanks,
--
js
suse labs