summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-04-07 11:52:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-10 10:36:34 +0200
commit1b8b20868a6d64cfe8174a21b25b74367bdf0560 (patch)
treeff3f74fd6a145199eebc043d4827d7ba39b8dfc8 /net/can
parentd09845e98a05850a8094ea8fd6dd09a8e6824fff (diff)
downloadlinux-1b8b20868a6d64cfe8174a21b25b74367bdf0560.tar.gz
linux-1b8b20868a6d64cfe8174a21b25b74367bdf0560.tar.bz2
linux-1b8b20868a6d64cfe8174a21b25b74367bdf0560.zip
tty: fix return value for unsupported ioctls
Drivers should return -ENOTTY ("Inappropriate I/O control operation") when an ioctl isn't supported, while -EINVAL is used for invalid arguments. Fix up the TIOCMGET, TIOCMSET and TIOCGICOUNT helpers which returned -EINVAL when a tty driver did not implement the corresponding operations. Note that the TIOCMGET and TIOCMSET helpers predate git and do not get a corresponding Fixes tag below. Fixes: d281da7ff6f7 ("tty: Make tiocgicount a handler") Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210407095208.31838-3-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions