Commit fef1ac95 authored by Takashi Iwai's avatar Takashi Iwai

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: fcc62b19 ("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.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fcc62b19
...@@ -1168,7 +1168,6 @@ static int __snd_ctl_elem_info(struct snd_card *card, ...@@ -1168,7 +1168,6 @@ static int __snd_ctl_elem_info(struct snd_card *card,
info->access = 0; info->access = 0;
#endif #endif
result = kctl->info(kctl, info); result = kctl->info(kctl, info);
snd_power_unref(card);
if (result >= 0) { if (result >= 0) {
snd_BUG_ON(info->access); snd_BUG_ON(info->access);
index_offset = snd_ctl_get_ioff(kctl, &info->id); index_offset = snd_ctl_get_ioff(kctl, &info->id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment