]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Fix racy access to chmap
authorTakashi Iwai <tiwai@suse.de>
Wed, 1 Feb 2017 16:24:02 +0000 (17:24 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:35:07 +0000 (17:35 +0100)
commitce9a338964a7b1fae9acd01e9776678910790b2e
tree5251eead3e47c2c1e1a042fcb8aa73ba5eb2339c
parentede1848f2fcdb2e5f35b67f7462de1cbe0a1febd
ALSA: x86: Fix racy access to chmap

The access to chmap can be racy against the hotplug process, where it
recreates the chmap on the fly.  For protecting against it, a mutex is
introduced in this patch.  It's also used for protecting the change /
reference of eld and state fields, too.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c
sound/x86/intel_hdmi_audio.h