ALSA: hda - Avoid access of amp cache element outside mutex
authorTakashi Iwai <tiwai@suse.de>
Thu, 20 Dec 2012 11:58:12 +0000 (12:58 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 12 Jan 2013 07:34:07 +0000 (08:34 +0100)
commit2ce4886abc61193a8b9dfbb8b08e3f8dff463671
tree88c7e6181d3cb09551ba488bc0e58ce00c31aef6
parent8565f052c5f696ba095a078ea7dbac32460012be
ALSA: hda - Avoid access of amp cache element outside mutex

The access to a cache array element could be invalid outside the
mutex, so copy locally for the later references.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c