linux-stable/drivers/usb/class
Oliver Neukum 916cd2fcbc usb: cdc-wdm: close race between read and workqueue
commit 339f83612f upstream.

wdm_read() cannot race with itself. However, in
service_outstanding_interrupt() it can race with the
workqueue, which can be triggered by error handling.

Hence we need to make sure that the WDM_RESPONDING
flag is not just only set but tested.

Fixes: afba937e54 ("USB: CDC WDM driver")
Cc: stable <stable@kernel.org>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20240314115132.3907-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-03 15:19:50 +02:00
..
cdc-acm.c
cdc-acm.h
cdc-wdm.c usb: cdc-wdm: close race between read and workqueue 2024-04-03 15:19:50 +02:00
Kconfig
Makefile
usblp.c
usbtmc.c