From: Takashi Iwai Date: Thu, 10 May 2012 14:11:15 +0000 (+0200) Subject: ALSA: hda - Fix concurrent hash accesses X-Git-Tag: v3.5-rc1~83^2~4^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3b6bcc292da80ea08a979af177538ffdbbae36b;p=pandora-kernel.git ALSA: hda - Fix concurrent hash accesses The amp and caps hashes aren't protected properly for concurrent accesses. Protect them via a new mutex now. But it can't be so simple as originally thought: since the update of a hash table entry itself might trigger the power-up sequence which again accesses the hash table, we can't cover the whole function simply via mutex. Thus the update part has to be split from the mutex and revalidated. Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed