aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorPeter Hurley <[email protected]>2016-02-05 18:49:36 +0000
committerGreg Kroah-Hartman <[email protected]>2016-02-07 00:56:46 +0000
commite9036d0662360cd4c79578565ce422ed5872f301 (patch)
treede3a6332fd92f6a8992440467988f6844bd270c9 /net/unix/af_unix.c
parentLinux 4.5-rc2 (diff)
downloadkernel-e9036d0662360cd4c79578565ce422ed5872f301.tar.gz
kernel-e9036d0662360cd4c79578565ce422ed5872f301.zip
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 <[email protected]> Signed-off-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions