serial: pch_uart: fix tty-kref leak in dma-rx path
authorJohan Hovold <jhovold@gmail.com>
Tue, 10 Sep 2013 10:50:50 +0000 (12:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2013 14:13:10 +0000 (07:13 -0700)
commit20d7e144c93a9f06224fc983cb5b248bb5bc87fb
tree4ea8b0637d8a3ee6b5fcd7b977adb103bc5b41d0
parentb0a382b5a35e306362cde912bff18a42cc00b0f5
serial: pch_uart: fix tty-kref leak in dma-rx path

commit 19b85cfb190eb9980eaf416bff96aef4159a430e upstream.

Fix tty_kref leak when tty_buffer_request room fails in dma-rx path.

Note that the tty ref isn't really needed anymore, but as the leak has
always been there, fixing it before removing should makes it easier to
backport the fix.

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