]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: Add missing rwsem around snd_ctl_remove() calls
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Nov 2021 07:13:14 +0000 (08:13 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 16 Nov 2021 07:13:56 +0000 (08:13 +0100)
commite691cacc918ab1c3825e3305f0b4b1b32e70e097
treed0b6541c0610b7805040175c3135d52f8d34811c
parent7634261c8651cbf0d79232157fb996193346ea3f
ALSA: hda: Add missing rwsem around snd_ctl_remove() calls

snd_ctl_remove() has to be called with card->controls_rwsem held (when
called after the card instantiation).  This patch add the missing
rwsem calls around it.

Fixes: 589f42d6eb43 ("ALSA: hda - Manage kcontrol lists")
Link: https://lore.kernel.org/r/20211116071314.15065-3-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c