diff options
author | Peter Hurley <[email protected]> | 2013-06-13 15:56:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2013-06-17 12:37:29 -0700 |
commit | 7c61c3d8f44d5d822f758754287af644307b4af9 (patch) | |
tree | bc874566194bc82c269c565641f0829983192c85 /net/unix/sysctl_net_unix.c | |
parent | ef223fb3d1d61c2a95a89cdc02f8e86dac96ddc3 (diff) |
tty: Fix transient pty write() EIO
Commit 699390354da6c258b65bf8fa79cfd5feaede50b6
('pty: Ignore slave pty close() if never successfully opened')
introduced a bug with ptys whereby a write() in parallel with an
open() on an existing pty could mistakenly indicate an I/O error.
Only indicate an I/O error if the condition on open() actually exists.
Reported-by: Markus Trippelsdorf <[email protected]>
Signed-off-by: Peter Hurley <[email protected]>
Tested-by: Mikael Pettersson <[email protected]>
Cc: stable <[email protected]> # 3.9
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions