linux-stable/sound/drivers
Omair Mohammed Abdullah 7aa79b178e ALSA: aloop - add locking to timer access
commit d4f1e48bd1 upstream.

When the loopback timer handler is running, calling del_timer() (for STOP
trigger) will not wait for the handler to complete before deactivating the
timer. The timer gets rescheduled in the handler as usual. Then a subsequent
START trigger will try to start the timer using add_timer() with a timer pending
leading to a kernel panic.

Serialize the calls to add_timer() and del_timer() using a spin lock to avoid
this.

Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-10-13 05:28:10 +09:00
..
mpu401 ALSA: mpu401: Fix missing initialization of irq field 2012-08-09 08:27:53 -07:00
opl3 include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
opl4 ALSA: opl4 - Fix a wrong argument in proc write callback 2010-05-10 10:21:32 +02:00
pcsp Merge commit 'v2.6.34-rc6' into core/locking 2010-05-03 09:17:01 +02:00
vx Fix common misspellings 2011-03-31 11:26:23 -03:00
aloop.c ALSA: aloop - add locking to timer access 2012-10-13 05:28:10 +09:00
dummy.c ALSA: dummy driver - add model parameter 2010-02-02 17:50:57 +01:00
Kconfig Merge branch 'topic/aloop' into topic/misc 2010-08-18 15:17:42 +02:00
Makefile ALSA: introduce the snd-aloop module for the PCM loopback 2010-08-09 14:21:11 +02:00
ml403-ac97cr.c ALSA: ml403-ac97cr: Use vsprintf extension %pR for struct resource 2010-12-14 10:45:15 +01:00
mtpav.c ALSA: use linux/io.h to fix compile warnings 2011-02-02 17:49:53 +01:00
mts64.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
pcm-indirect2.c Fix common misspellings 2011-03-31 11:26:23 -03:00
pcm-indirect2.h [ALSA] Xilinx ML403 AC97 Controller Reference device driver 2008-01-31 17:29:15 +01:00
portman2x4.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
serial-u16550.c sound: serial-u16550: fix buffer overflow 2009-05-05 16:01:18 +02:00
virmidi.c sound: Remove unnecessary casts of private_data 2010-09-07 08:05:59 +02:00