pty: Ignore slave open count for master pty open
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 30 Jan 2013 17:43:52 +0000 (12:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 23:40:29 +0000 (15:40 -0800)
commit80cace72566633bb99da1f022f71d3dac3498b02
tree3f23619bc0f1bf0625fce0c9d4bbc89b484077e3
parent7be88b4ccb62737abe4bf27f9e66e224a70a12c4
pty: Ignore slave open count for master pty open

Multiple slave pty opens may be performed in parallel with the
master open. Of course, all the slave opens will fail because the
master pty is still locked but during this time the slave pty
count will be artificially greater than 1. This is should not
cause the master pty open to fail.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c