From: Peter Hurley Date: Thu, 13 Jun 2013 19:56:37 +0000 (-0400) Subject: tty: Fix transient pty write() EIO X-Git-Tag: v3.10-rc7~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c61c3d8f44d5d822f758754287af644307b4af9;p=pandora-kernel.git 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 Signed-off-by: Peter Hurley Tested-by: Mikael Pettersson Cc: stable # 3.9 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed