summaryrefslogtreecommitdiffstats
path: root/kernel/rtmutex-debug.h
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-01-30 12:43:50 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-02-04 15:40:28 -0800
commit699390354da6c258b65bf8fa79cfd5feaede50b6 (patch)
treea2a1cde7fdc06a6ca684ac1c9bf57bef5d6f75ca /kernel/rtmutex-debug.h
parent7acf6cd80b201f77371a5374a786144153629be8 (diff)
downloadlinux-699390354da6c258b65bf8fa79cfd5feaede50b6.tar.bz2
pty: Ignore slave pty close() if never successfully opened
If the master and slave ptys are opened in parallel, the slave open fails because the pty is still locked. This is as designed. However, pty_close() is still called for the slave pty which sets TTY_OTHER_CLOSED in the master pty. This can cause the master open to fail as well. Use a common pattern in other tty drivers by setting TTY_IO_ERROR until the open is successful and only closing the pty if not set. Note: the master pty always closes regardless of whether the open was successful, so that proper cleanup can occur. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/rtmutex-debug.h')
0 files changed, 0 insertions, 0 deletions