From: Takashi Iwai Date: Thu, 24 Mar 2011 08:50:15 +0000 (+0100) Subject: ALSA: Fix yet another race in disconnection X-Git-Tag: v2.6.39-rc1~32^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a45e3d6b13e97506b616980c0f122c3389bcefa4;p=pandora-kernel.git ALSA: Fix yet another race in disconnection 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 Cc: Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed