]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ALSA: usb - Release capture substream URBs properly
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Sep 2010 06:27:02 +0000 (08:27 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:36:27 +0000 (13:36 -0700)
commite45ef8fb8d9e08be9997f2c530ce83237351373f
treeba23dd3fe45fd30f28ad79ca82e306c207579bca
parent7ab99e2ebb57576e1e853e9de18f242558196f6f
ALSA: usb - Release capture substream URBs properly

commit 76195fb096ca6db2f8bbaffb96e3025aaf1649a0 upstream.

Due to the wrong "return" in the loop, a capture substream won't be
released at disconnection properly if the device is capture only and has
no playback substream.  This caused Oops occasionally at the device
reconnection.

Reported-by: Kim Minhyoung <minhyoung.kim@lge.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/usb/card.c