mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
ALSA: control: Fix leftover snd_power_unref()
commitfef1ac950c
upstream. One snd_power_unref() was forgotten and left at __snd_ctl_elem_info() in the previous change for reorganizing the locking order. Fixes:fcc62b1910
("ALSA: control: Take power_ref lock primarily") Link: https://github.com/thesofproject/linux/pull/5127 Link: https://patch.msgid.link/20240801064203.30284-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
00fb5b23e1
commit
41e7dd6fb6
@ -1165,7 +1165,6 @@ static int __snd_ctl_elem_info(struct snd_card *card,
|
||||
info->access = 0;
|
||||
#endif
|
||||
result = kctl->info(kctl, info);
|
||||
snd_power_unref(card);
|
||||
if (result >= 0) {
|
||||
snd_BUG_ON(info->access);
|
||||
index_offset = snd_ctl_get_ioff(kctl, &info->id);
|
||||
|
Loading…
Reference in New Issue
Block a user