]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ALSA: caiaq: Fix stray URB at probe error path
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Oct 2017 14:39:02 +0000 (16:39 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 1 Jan 2018 20:50:57 +0000 (20:50 +0000)
commitec314904ac8a5632b5715a9b15de2f59f6c42076
tree4c2c81306bc283a82c0465aa6ba2fd8c316983fc
parent767121581507749d66fe5212b9947083384d42d3
ALSA: caiaq: Fix stray URB at probe error path

commit 99fee508245825765ff60155fed43f970ff83a8f upstream.

caiaq driver doesn't kill the URB properly at its error path during
the probe, which may lead to a use-after-free error later.  This patch
addresses it.

Reported-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
[bwh: Backported to 3.2: s/cdev/dev/g]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
sound/usb/caiaq/device.c