Skip to contentSkip to conversation

ALSA: control: Fix leftover snd_power_unref()

PATCH New Takashi Iwai 1 participant 1 message Aug 1, 2024 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 sound/core/control.c | 1 -
 1 file changed, 1 deletion(-)
sound/core/control.c +0 -1
index 2b857757bb19..f668826649b3 100644
@@ -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);
Signature · 1 line
2.43.0