summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-08-01 08:42:01 +0200
committerTakashi Iwai <tiwai@suse.de>2024-08-01 08:42:42 +0200
commitfef1ac950c600ba50ef4d65ca03c8dae9be7f9ea (patch)
tree36db4f35fba73090b553ac7ea98a7f2e2adb739d
parentfcc62b19104a67b9a2941513771e09389b75bd95 (diff)
downloadlinux-stable-fef1ac950c600ba50ef4d65ca03c8dae9be7f9ea.tar.gz
linux-stable-fef1ac950c600ba50ef4d65ca03c8dae9be7f9ea.tar.bz2
linux-stable-fef1ac950c600ba50ef4d65ca03c8dae9be7f9ea.zip
ALSA: control: Fix leftover snd_power_unref()
One snd_power_unref() was forgotten and left at __snd_ctl_elem_info() in the previous change for reorganizing the locking order. Fixes: fcc62b19104a ("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>
-rw-r--r--sound/core/control.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/core/control.c b/sound/core/control.c
index 2b857757bb19..f668826649b3 100644
--- a/sound/core/control.c
+++ b/sound/core/control.c
@@ -1168,7 +1168,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);