Skip to content

Commit

Permalink
ALSA: control: Fix leftover snd_power_unref()
Browse files Browse the repository at this point in the history
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: #5127
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
tiwai authored and bardliao committed Aug 1, 2024
1 parent a77cb98 commit a9151e4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/core/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a9151e4

Please sign in to comment.