Peter Hurley e9036d0662 tty: Drop krefs for interrupted tty lock
When the tty lock is interrupted on attempted re-open, 2 tty krefs
are still held. Drop extra kref before returning failure from
tty_lock_interruptible(), and drop lookup kref before returning
failure from tty_open().

Fixes: 0bfd464d3fdd ("tty: Wait interruptibly for tty lock on reopen")
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-02-06 16:56:46 -08:00
..
2015-11-04 21:35:12 -08:00
2016-01-31 17:00:27 -08:00
2015-03-31 12:04:13 +02:00
2015-05-10 19:26:37 +02:00
2015-10-17 21:11:29 -07:00
2015-10-17 21:14:06 -07:00
2015-11-20 16:19:54 -08:00
2015-12-12 23:05:28 -08:00
2015-12-13 19:59:48 -08:00