Commit 1bb95415 authored by Peter Hurley's avatar Peter Hurley Committed by Greg Kroah-Hartman

pty: Don't drop pty master tty lock to hangup slave

With the revised tty lock order and lockdep annotation, claiming
the pty slave lock is now safe while still holding the pty master lock.
Signed-off-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 35af935e
...@@ -66,9 +66,7 @@ static void pty_close(struct tty_struct *tty, struct file *filp) ...@@ -66,9 +66,7 @@ static void pty_close(struct tty_struct *tty, struct file *filp)
mutex_unlock(&devpts_mutex); mutex_unlock(&devpts_mutex);
} }
#endif #endif
tty_unlock(tty);
tty_vhangup(tty->link); tty_vhangup(tty->link);
tty_lock(tty);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment