]> git.proxmox.com Git - mirror_ubuntu-artful-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Mon, 30 Oct 2017 13:48:06 +0000 (14:48 +0100)
commitd8846bb5617bf2d40ea55a7a50e2c260206c69d8
treed420a71dbc015bc344a313bd2e53b613c616dd99
parent5755c9f70fc78f1a37f665b2abec42936577cc7c
ALSA: caiaq: Fix stray URB at probe error path

BugLink: http://bugs.launchpad.net/bugs/1724836
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/usb/caiaq/device.c