]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ALSA: jack: Add missing rwsem around snd_ctl_remove() calls
authorTakashi Iwai <tiwai@suse.de>
Tue, 16 Nov 2021 07:13:12 +0000 (08:13 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 7 Mar 2022 15:35:57 +0000 (16:35 +0100)
commitead9b7fef849cdc65c2411e7f328858a2de0f562
tree85a54293ae0bf08c5e28a17e1bbf22554c5d0b90
parent99c85ef021cdd1d8bac4a94745e13f9e9d1e578d
ALSA: jack: Add missing rwsem around snd_ctl_remove() calls

BugLink: https://bugs.launchpad.net/bugs/1960566
[ Upstream commit 06764dc931848c3a9bc01a63bbf76a605408bb54 ]

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: 9058cbe1eed2 ("ALSA: jack: implement kctl creating for jack devices")
Link: https://lore.kernel.org/r/20211116071314.15065-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/core/jack.c