linux/drivers/staging
Johan Hovold 49f71d50cb staging: greybus: uart: fix unprivileged TIOCCSERIAL
[ Upstream commit 60c6b305c1 ]

TIOCSSERIAL is a horrid, underspecified, legacy interface which for most
serial devices is only useful for setting the close_delay and
closing_wait parameters.

A non-privileged user has only ever been able to set the since long
deprecated ASYNC_SPD flags and trying to change any other *supported*
feature should result in -EPERM being returned. Setting the current
values for any supported features should return success.

Fix the greybus implementation which instead indicated that the
TIOCSSERIAL ioctl was not even implemented when a non-privileged user
set the current values.

Fixes: e68453ed28 ("greybus: uart-gb: now builds, more framework added")
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210407102334.32361-7-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-14 09:50:15 +02:00
..
android
axis-fifo
board
clocking-wizard
comedi staging: comedi: tests: ni_routes_test: Fix compilation error 2021-05-14 09:50:15 +02:00
emxx_udc
fbtft
fieldbus staging: fieldbus: anybuss: jump to correct label in an error path 2020-10-27 13:24:51 +01:00
fsl-dpaa2
fwserial staging: fwserial: fix TIOCGSERIAL implementation 2021-05-14 09:50:15 +02:00
gasket staging: gasket: interrupt: fix the missed eventfd_ctx_put() in gasket_interrupt.c 2020-12-30 11:53:10 +01:00
gdm724x staging: gdm724x: Fix DMA from stack 2021-03-04 11:38:33 +01:00
goldfish
greybus staging: greybus: uart: fix unprivileged TIOCCSERIAL 2021-05-14 09:50:15 +02:00
gs_fpgaboot
hikey9xx staging: spmi: hisi-spmi-controller: Fix some error handling paths 2021-01-19 18:27:25 +01:00
iio
kpc2000
ks7010 staging: ks7010: prevent buffer overflow in ks_wlan_set_scan() 2021-03-17 17:06:32 +01:00
media media: staging/intel-ipu3: Fix race condition during set_fmt 2021-05-11 14:47:38 +02:00
most staging: most: sound: add sanity check for function argument 2021-03-07 12:34:10 +01:00
mt7621-dma staging/mt7621-dma: mtk-hsdma.c->hsdma-mt7621.c 2021-03-04 11:38:33 +01:00
mt7621-dts
mt7621-pci staging: mt7621-pci: avoid to request pci bus resources 2020-11-06 11:11:28 +01:00
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon staging: octeon: Drop on uncorrectable alignment or FCS error 2020-10-27 13:18:50 +01:00
octeon-usb
olpc_dcon
pi433
qlge Staging / IIO driver updates for 5.10-rc1 2020-10-15 09:46:23 -07:00
ralink-gdma staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK 2020-11-06 11:12:49 +01:00
rtl8188eu staging: rtl8188eu: fix potential memory corruption in rtw_check_beacon_data() 2021-03-17 17:06:31 +01:00
rtl8192e staging: rtl8192e: Change state information from u16 to u8 2021-04-07 15:00:13 +02:00
rtl8192u staging: rtl8192u: Fix potential infinite loop 2021-05-14 09:50:15 +02:00
rtl8712 staging: rtl8712: Fix possible buffer overflow in r8712_sitesurvey_cmd 2021-03-17 17:06:32 +01:00
rtl8723bs staging: rtl8723bs: wifi_regd.c: Fix incorrect number of regulatory rules 2021-03-04 11:37:26 +01:00
rts5208
sm750fb
unisys
vc04_services staging: bcm2835-audio: Replace unsafe strcpy() with strscpy() 2021-03-07 12:34:10 +01:00
vme
vt6655
vt6656
wfx staging: wfx: fix possible panic with re-queued frames 2021-03-04 11:37:28 +01:00
wlan-ng
Kconfig
Makefile