mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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: 28abd224db ("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>
This commit is contained in:
parent
7a5f1cd22d
commit
0a7b5221b5
|
|
@ -514,7 +514,7 @@ static int init_card(struct snd_usb_caiaqdev *cdev)
|
|||
|
||||
err = setup_card(cdev);
|
||||
if (err < 0)
|
||||
return err;
|
||||
goto err_kill_urb;
|
||||
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user