android_kernel_motorola_sm6225/include
Johan Hovold 76d7fc0857 tty: fix return value for unsupported ioctls
[ Upstream commit 1b8b20868a6d64cfe8174a21b25b74367bdf0560 ]

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: d281da7ff6 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 10:59:31 +02:00
..
acpi ACPI: scan: Use unique number for instance_no 2021-03-30 14:37:02 +02:00
asm-generic vmlinux.lds.h: Create section for protection against instrumentation 2021-03-24 11:07:31 +01:00
clocksource
crypto crypto: api - check for ERR pointers in crypto_destroy_tfm() 2021-05-22 10:59:14 +02:00
drm drm/atomic_helper: Stop modesets on unregistered connectors harder 2020-12-02 08:48:08 +01:00
dt-bindings dt-bindings: reset: meson8b: fix duplicate reset IDs 2020-01-23 08:21:26 +01:00
keys KEYS: Don't write out to userspace while holding key semaphore 2020-04-23 10:30:24 +02:00
kvm KVM: arm/arm64: Sync ICH_VMCR_EL2 back when about to block 2019-08-25 10:47:59 +02:00
linux tty: fix return value for unsupported ioctls 2021-05-22 10:59:31 +02:00
math-emu math-emu/soft-fp.h: (_FP_ROUND_ZERO) cast 0 to void to fix warning 2019-12-13 08:51:34 +01:00
media media: v4l2-device.h: Explicitly compare grp{id,mask} to zero in v4l2_device macros 2020-02-24 08:34:41 +01:00
memory
misc
net Bluetooth: verify AMP hci_chan before amp_destroy 2021-05-22 10:59:23 +02:00
pcmcia pcmcia: remove long deprecated pcmcia_request_exclusive_irq() function 2018-08-18 12:30:42 -07:00
ras
rdma RDMA/core: Fix double destruction of uobject 2020-06-03 08:19:43 +02:00
scsi Fix misc new gcc warnings 2021-05-22 10:59:21 +02:00
soc irqchip/eznps: Fix build error for !ARC700 builds 2020-09-17 13:45:25 +02:00
sound ASoC: rt5670: Add new gpio1_is_ext_spk_en quirk and enable it on the Lenovo Miix 2 10 2020-07-29 10:16:58 +02:00
target scsi: target: core: Add cmd length set before cmd complete 2021-03-17 16:43:46 +01:00
trace memcg: fix a crash in wb_workfn when a device disappears 2021-02-13 13:51:15 +01:00
uapi tty: actually undefine superseded ASYNC flags 2021-05-22 10:59:31 +02:00
video udlfb: introduce a rendering mutex 2019-05-25 18:23:30 +02:00
xen Xen/gntdev: correct error checking in gntdev_map_grant_pages() 2021-02-23 15:00:59 +01:00