android_kernel_google_msm/sound/usb
Takashi Iwai 115b96e586 ALSA: usb-audio: Fix regression by disconnection-race-fix patch
[NOTE: the regression below is found only in 3.2-3.4 stable trees, so
       there is no upstream commit corresponding to this patch]

The recent fix for the race at disconnection of usb-audio devices
(upstream commit 978520b7) triggers Oops when a device is unplugged
while playing on 3.2 and 3.4 kernels.  The culprit is that the
shutdown flag check was wrongly added around the urb deactivation code
snippet.  The urb deactivation code has to be performed even after the
device disconnected.  Otherwise it remains undead and pokes the wild
access in the end.

The regression fix is simply reverting the shutdown flag check in that
code.

Reported-and-tested-by: Chris J Arges <christopherarges@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-27 20:47:44 -08:00
..
6fire
caiaq ALSA: snd-usb-caiaq: initialize card pointer 2012-12-03 11:46:36 -08:00
misc
usx2y
card.c ALSA: usb-audio: Fix mutex deadlock at disconnection 2012-11-17 13:16:36 -08:00
card.h ALSA: usb-audio: Fix races at disconnection 2012-11-17 13:16:12 -08:00
clock.c
clock.h
debug.h
endpoint.c ALSA: usb-audio: Fix regression by disconnection-race-fix patch 2013-01-27 20:47:44 -08:00
endpoint.h
format.c
format.h
helper.c
helper.h
Kconfig
Makefile
midi.c ALSA: usb-audio: Fix missing autopm for MIDI input 2013-01-11 09:06:49 -08:00
midi.h
mixer.c ALSA: usb-audio: Use rwsem for disconnect protection 2012-11-17 13:16:12 -08:00
mixer.h
mixer_maps.c
mixer_quirks.c ALSA: usb-audio: Fix races at disconnection in mixer_quirks.c 2012-11-17 13:16:13 -08:00
mixer_quirks.h
pcm.c ALSA: usb-audio: Use rwsem for disconnect protection 2012-11-17 13:16:12 -08:00
pcm.h
power.h
proc.c ALSA: usb-audio: Fix races at disconnection 2012-11-17 13:16:12 -08:00
proc.h
quirks-table.h ALSA: USB: Support for (original) Xbox Communicator 2012-10-13 05:38:52 +09:00
quirks.c ALSA: usb - fix race in creation of M-Audio Fast track pro driver 2013-01-21 11:45:24 -08:00
quirks.h
stream.c
stream.h
usbaudio.h ALSA: usb-audio: Use rwsem for disconnect protection 2012-11-17 13:16:12 -08:00