]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cdc-acm: fix race between initial clearing halt and open
authorOliver Neukum <oneukum@suse.com>
Thu, 17 Jul 2025 14:12:50 +0000 (16:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:31 +0000 (16:28 +0200)
commit9dfe40cb6c2cfa39f8ddc9fd9af7cb80e38a1f3d
treed062d62101a7784217d61c70bd6f0ca237b41602
parent729ac69a3e81038b959df1c22a949407ab2fadde
cdc-acm: fix race between initial clearing halt and open

commit 64690a90cd7c6db16d3af8616be1f4bf8d492850 upstream.

On the devices that need their endpoints to get an
initial clear_halt, this needs to be done before
the devices can be opened. That means it needs to be
before the devices are registered.

Fixes: 15bf722e6f6c0 ("cdc-acm: Add support of ATOL FPrint fiscal printers")
Cc: stable <stable@kernel.org>
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20250717141259.2345605-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c