]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: aloop - Fix possible IRQ lock inversion
authorTakashi Iwai <tiwai@suse.de>
Fri, 18 Mar 2011 06:31:53 +0000 (07:31 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Mar 2011 19:50:30 +0000 (12:50 -0700)
commitbffb8879ed2e5da445a280a8869ec608f21500e1
treebb18cc9dae6ce57e24e7a6cc6bfe6971ef50a481
parentc8c9edfe6a04a862066dffbffe255eaae5742efc
ALSA: aloop - Fix possible IRQ lock inversion

commit 98d21df431ad55281e1abf780f8d51e3391900b2 upstream.

loopback_pos_update() can be called in the timer callback, thus the lock
held should be irq-safe.  Otherwise you'll get AB/BA deadlock together
with substream->self_group.lock.

Reported-and-tested-by: Knut Petersen <Knut_Petersen@t-online.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/drivers/aloop.c