Skip to content

Commit fef1ac9

Browse files
committed
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: fcc62b1 ("ALSA: control: Take power_ref lock primarily") Link: thesofproject/linux#5127 Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent fcc62b1 commit fef1ac9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sound/core/control.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,6 @@ static int __snd_ctl_elem_info(struct snd_card *card,
11681168
info->access = 0;
11691169
#endif
11701170
result = kctl->info(kctl, info);
1171-
snd_power_unref(card);
11721171
if (result >= 0) {
11731172
snd_BUG_ON(info->access);
11741173
index_offset = snd_ctl_get_ioff(kctl, &info->id);

0 commit comments

Comments
 (0)