]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ALSA: Fix yet another race in disconnection
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Mar 2011 08:50:15 +0000 (09:50 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 14 Mar 2012 14:56:50 +0000 (10:56 -0400)
commitdc9080910ea215e2252c0a0e57e27ca51e733db0
treefa5dcb5a9aff27f69c32ddeafe0283e497265f7f
parent2fa60a045682ebce0fcc19d5e50ada2a0135cb16
ALSA: Fix yet another race in disconnection

commit a45e3d6b13e97506b616980c0f122c3389bcefa4 upstream.

This patch fixes a race between snd_card_file_remove() and
snd_card_disconnect().  When the card is added to shutdown_files list
in snd_card_disconnect(), but it's freed in snd_card_file_remove() at
the same time, the shutdown_files list gets corrupted.  The list member
must be freed in snd_card_file_remove() as well.

Reported-and-tested-by: Russ Dill <russ.dill@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
sound/core/init.c