nuttx-update/drivers
Jukka Laitinen 575c608be8 drivers/usbdev/cdcacm.c: Fix a crash in cdcacm if usbdev gets unregistered while client calls close for the tty
Make sure that the cdcacm is disconnected before the usbdev gets unregistered.

Also, check if the device is connected or not in cdcuart_txempty (uart_txempty). Otherwise there may be a crash during uart_tcdrain, called in tty close path, if the usbdev unregistration happens during the loop.

This issue can be triggered by monitoring the cable connection status in one thread, sending BOARDIOC_USBDEV_DISCONNECT if the usb cable is detached. In another thread close the ttyACM.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2025-01-10 21:14:55 +08:00
..
1wire drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
aie drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
analog drivers/adc: Rename up_ads1255initialize to ads1255_initialize 2024-11-16 17:39:27 +01:00
audio Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
bch drivers/bch: Drivers may not support command BIOC_FLUSH 2024-12-12 01:56:55 +08:00
can drivers/can: fix typo specfic -> specific 2024-12-17 20:48:07 +08:00
clk drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
contactless drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
coresight drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
crypto crypto/se05x: Allow set_enable_pin to be NULL and fix error handling 2024-11-07 11:37:58 +08:00
devicetree limits/path: replace CONFIG_PATH_MAX to PATH_MAX to ensure consistency 2024-12-10 14:27:37 +08:00
dma drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
dummy drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
eeprom drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
efuse drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
i2c use small lock in following files 2024-12-22 18:43:26 +08:00
i2s drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
i3c arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
input Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
ioexpander sim/configs/rpserver/rpproxy_virtio: Change the sim 32bit to 64bit compilation 2024-11-15 14:01:11 +08:00
ipcc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
lcd st7789: add configuration option to set default background color 2024-11-29 18:32:22 +08:00
leds Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
loop Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
math drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
misc drivers/misc/Kconfig: change DEV_ZERO deafult to !DEFAULT_SMALL. 2024-12-30 22:22:29 +08:00
mmcsd drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
modem drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
motor drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
mtd Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
net Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
note arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
pci drivers/pci: fix typo addres -> address 2024-12-17 20:48:07 +08:00
pinctrl drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
pipes Revert "drivers/pipes: return after short write if buffer is full" 2024-11-26 11:08:02 -03:00
power use small lock in following files 2024-12-22 18:43:26 +08:00
rc drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
regmap drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
reset drivers/reset: fix typo retrun -> return 2024-12-17 20:48:07 +08:00
rf drivers/rf: migrate license to ASF 2024-11-06 19:46:13 +08:00
rmt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
rpmsg rpmsg/rpmsg_virtio_lite: rename rpmsg_virtio to rpmsg_virtio_lite 2024-12-28 22:43:20 -03:00
rptun drivers/rpmsg: fix typo intialize -> initialize 2024-12-17 20:48:07 +08:00
segger segger: rm spin_lock_irqsave(NULL) in drivers/segger/config/SEGGER_RTT_Conf.h 2025-01-09 23:52:55 +08:00
sensors goldfish_sensor_uorb.c: add set_interval for goldfish sensor 2025-01-10 04:31:29 +08:00
serial drivers/serial: simplify 16550_PCI_UARTx_CLOCK config 2025-01-03 08:52:43 +08:00
spi drivers/spi/ice40: migrate to SPDX identifier 2024-12-16 14:18:35 +08:00
syslog Reduce the size of tcb by four bytes. 2025-01-02 23:18:42 +08:00
thermal Thermal/step_wise: Fix that hysteresis takes no effect 2024-12-26 09:23:10 +08:00
timers fix compile error 2025-01-08 09:28:58 +08:00
usbdev drivers/usbdev/cdcacm.c: Fix a crash in cdcacm if usbdev gets unregistered while client calls close for the tty 2025-01-10 21:14:55 +08:00
usbhost drivers/usbhost/hid_parser: migrate to SPDX identifier 2024-12-18 17:51:57 +08:00
usbmisc driver for STUSB4500 2024-11-30 08:40:08 -03:00
usbmonitor drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
usrsock drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
vhost drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
video drivers/video: add BRGA8888 support for goldfish gpu fb 2025-01-07 21:47:56 +08:00
virtio virtio-rng: Register /dev/urandom driver if CONFIG_DEV_URANDOM=y 2025-01-03 08:52:20 +08:00
wireless Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
drivers_initialize.c Fix some minor style issues 2024-11-20 10:51:07 +01:00
Kconfig AI engine driver 2024-10-16 13:57:23 +08:00
Makefile drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00