]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: caiaq: Fix potentially leftover ep1_in_urb at error path
authorTakashi Iwai <tiwai@suse.de>
Mon, 27 Apr 2026 12:37:53 +0000 (14:37 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 Apr 2026 06:12:58 +0000 (08:12 +0200)
commit0a7b5221b5b51cc798fcfc3be00d02eade149d69
tree20ecca51cedd807a1e46ce36fbca1f49d7755ae9
parent7a5f1cd22d47f8ca4b760b6334378ae42c1bd24b
ALSA: caiaq: Fix potentially leftover ep1_in_urb at error path

The previous fix for handling the error from setup_card() missed that
an internal URB cdev->ep1_in_urb might have been already submitted
beforehand.  In the normal case, this URB gets killed at the
disconnection, but in the error path, we didn't do it, hence there can
be a potential leak.

Fix it in the error path for setup_card(), too.

Fixes: 28abd224db4a ("ALSA: caiaq: Handle probe errors properly")
Cc: <stable@vger.kernel.org>
Link: https://patch.msgid.link/20260427123819.890185-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/device.c