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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 07:20:42 +0000 (09:20 +0200)
commit5b01343ad1bdc0d0d0578571395f63072d5d3072
tree7023de6ebc31e2ed3b53a7776372878b929cbff5
parentca2523c9c569186e1e39f5f9db6b593d3f4ccf87
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/caiaq/device.c