]> git.kernelconcepts.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:53:17 +0000 (16:53 -0700)
commit06ac5c43d8bc08b4a480062dfd9ee80b6da13d2e
treeece79b51ba411f7bd9d2639b7986a0aa0a09e613
parentb99789074272c0cec8222c500db2d1d1d6f3bbcf
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: Greg Kroah-Hartman <gregkh@suse.de>
sound/core/init.c