Commit 457f3c86 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda/intel: Properly free the display power at error path

When an error occurs in azx_probe_continue(), we should release the
display power.  However, the current code ignores it and releases the
display power only for HSW/BDW cases.  Fix it.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e454ff8e
......@@ -2269,7 +2269,7 @@ static int azx_probe_continue(struct azx *chip)
pm_runtime_put_autosuspend(&pci->dev);
out_free:
if (!hda->need_i915_power)
if (err < 0 || !hda->need_i915_power)
display_power(chip, false);
i915_power_fail:
......
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