linux/drivers/staging/greybus
Johan Hovold 92dc0b1f46 staging: greybus: uart: fix tty use after free
User space can hold a tty open indefinitely and tty drivers must not
release the underlying structures until the last user is gone.

Switch to using the tty-port reference counter to manage the life time
of the greybus tty state to avoid use after free after a disconnect.

Fixes: a18e151757 ("greybus: more uart work")
Cc: stable@vger.kernel.org      # 4.9
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210906124538.22358-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-14 09:18:18 +02:00
..
Documentation
tools
arche_platform.h
arche-apb-ctrl.c
arche-platform.c
audio_apbridgea.c
audio_apbridgea.h
audio_codec.c
audio_codec.h
audio_gb.c
audio_helper.c
audio_helper.h
audio_manager_module.c
audio_manager_private.h
audio_manager_sysfs.c
audio_manager.c
audio_manager.h
audio_module.c
audio_topology.c staging: greybus: audio: Fix sparse warning. 2021-05-20 11:39:26 +02:00
authentication.c
bootrom.c
camera.c
firmware.h
fw-core.c
fw-download.c
fw-management.c
gb-camera.h
gbphy.c bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
gbphy.h
gpio.c
greybus_authentication.h
greybus_firmware.h
hid.c
i2c.c
Kconfig
light.c
log.c
loopback.c
Makefile
power_supply.c
pwm.c
raw.c
sdio.c
spi.c
spilib.c staging: greybus: spi: add blank line after variable declaration 2021-05-20 11:40:36 +02:00
spilib.h
TODO
uart.c staging: greybus: uart: fix tty use after free 2021-09-14 09:18:18 +02:00
usb.c
vibrator.c