ALSA: hda: hda_component: Protect shared data with a mutex
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 17 Jun 2024 15:41:05 +0000 (16:41 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Jun 2024 09:58:45 +0000 (11:58 +0200)
commit047b9cbbaa8ee3f1d71ff07d181ea6397be97ffe
tree17389be88655db90d359b42099b5760acd328c7d
parent3b2a8582876d0b1ff1d8df9ff3cca03a70268fe2
ALSA: hda: hda_component: Protect shared data with a mutex

The hda_component contains information shared from the amp drivers to
the codec that can be altered (for example as the driver unloads). Guard
the update and use of these to prevent use of stale data.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/20240617154105.108635-5-simont@opensource.cirrus.com
sound/pci/hda/hda_component.c
sound/pci/hda/hda_component.h