]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
tty: Simplify tty_set_ldisc() exit handling
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 7 Aug 2017 22:52:40 +0000 (15:52 -0700)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Fri, 11 Aug 2017 15:23:40 +0000 (17:23 +0200)
commitabd08af3bbeddaed2172462e1b612e8399bd135b
treed4f09c03d7d13ceb932798d1912c0948d3aa7891
parent82993d9c9b2e36533692c0d59dbeab5c723c655d
tty: Simplify tty_set_ldisc() exit handling

BugLink: http://bugs.launchpad.net/bugs/1709126
Perform common exit for both successful and error exit handling
in tty_set_ldisc(). Fixes unlikely possibility of failing to restart
input kworker when switching to the same line discipline (noop case).

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 63d8cb3f19dabb409a09b4f2b8827934ab9365a3)
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Marcelo Cerri <marcelo.cerri@canonical.com>
Acked-by: Benjamin M Romer <benjamin.romer@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/tty/tty_ldisc.c