OSDN Git Service

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:35:40 +0000 (09:35 +0200)
commitbbab59d6c4b2840172af0935a7a6ce2744c42193
treed2dd3b4b5d70a1522b6b2949f9975c1d97f7042f
parent6571ce8408811e56f2c70d093a6546c11b82fad3
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