serial: pch_uart: fix tty-kref leak in rx-error path
authorJohan Hovold <jhovold@gmail.com>
Tue, 10 Sep 2013 10:50:49 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Sep 2013 17:05:47 +0000 (10:05 -0700)
commitfc0919c68cb2f75bb1af759315f9d7e2a9443c28
tree1c41e68d65d2e6cf9355edad0c675dbd34e2bc67
parentcfd29aa0e81b791985e8428e6507e80e074e6730
serial: pch_uart: fix tty-kref leak in rx-error path

Fix tty-kref leak introduced by commit 384e301e ("pch_uart: fix a
deadlock when pch_uart as console") which never put its tty reference.

Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pch_uart.c