diff options
author | Jiri Slaby <[email protected]> | 2013-01-11 12:06:27 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2013-01-17 13:56:57 -0800 |
commit | ded2f295a36d17838fe97e80d7b6ea83381474f8 (patch) | |
tree | c8380e7cc90a4d32bee401f3770ee9ff82f8cb96 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 5dd070d21e2cb34b4162d564d73cca3591f94389 (diff) |
pty: return EINVAL for TIOCGPTN for BSD ptys
Commit bbb63c514a3464342967237a51a21ea8f61ab951 (drivers:tty:fix up
ENOIOCTLCMD error handling) changed the default return value from tty
ioctl to be ENOTTY and not EINVAL. This is appropriate.
But in case of TIOCGPTN for the old BSD ptys glibc started failing
because it expects EINVAL to be returned. Only then it continues to
obtain the pts name the other way around.
So fix this case by explicit return of EINVAL in this case.
Signed-off-by: Jiri Slaby <[email protected]>
Reported-by: Florian Westphal <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: stable <[email protected]> # 3.7+
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions