aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/option.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-04-07 12:39:20 +0200
committerJohan Hovold <johan@kernel.org>2021-04-08 09:46:01 +0200
commit5f92aee93a68c3f3b13dc28a7e220adbdc3433b0 (patch)
treeb4ca87e4f861327bbde22d13aeaa848b8952b6a6 /drivers/usb/serial/option.c
parentUSB: serial: whiteheat: fix TIOCGSERIAL implementation (diff)
downloadlinux-dev-5f92aee93a68c3f3b13dc28a7e220adbdc3433b0.tar.xz
linux-dev-5f92aee93a68c3f3b13dc28a7e220adbdc3433b0.zip
USB: serial: 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 USB serial driver did not implement the corresponding methods. 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") Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/option.c')
0 files changed, 0 insertions, 0 deletions