summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-04-07 11:52:03 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-10 10:36:34 +0200
commit8871de06ff78e9333d86c87d7071452b690e7c9b (patch)
tree4089dbd383d38c527d8767d052ba33d3581700a2 /README
parent1b8b20868a6d64cfe8174a21b25b74367bdf0560 (diff)
downloadlinux-8871de06ff78e9333d86c87d7071452b690e7c9b.tar.gz
linux-8871de06ff78e9333d86c87d7071452b690e7c9b.tar.bz2
linux-8871de06ff78e9333d86c87d7071452b690e7c9b.zip
tty: fix return value for unsupported termiox ioctls
Drivers should return -ENOTTY ("Inappropriate I/O control operation") when an ioctl isn't supported, while -EINVAL is used for invalid arguments. Support for termiox was added by commit 1d65b4a088de ("tty: Add termiox") in 2008 but no driver support ever followed and it was recently ripped out by commit e0efb3168d34 ("tty: Remove dead termiox code"). Fix the return value for the unsupported termiox ioctls, which have always returned -EINVAL, by explicitly returning -ENOTTY rather than removing them completely and falling back to the default unrecognised- ioctl handling. Fixes: 1d65b4a088de ("tty: Add termiox") Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210407095208.31838-4-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions