diff options
| author | Peter Hurley <peter@hurleysoftware.com> | 2016-02-05 10:49:36 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-06-14 13:16:26 +0200 |
| commit | cc04a1433843ff8518f3bf6733e99abb05458b82 (patch) | |
| tree | c6d280f33bc6459b4ef5a816080d390913065b2b /tools/perf/scripts/python | |
| parent | 983c09ebdbc2c047b608021411d70d5c4404b1a6 (diff) | |
tty: Drop krefs for interrupted tty lock
commit e9036d0662360cd4c79578565ce422ed5872f301 upstream.
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>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
