Skip to content

Commit 457f3c8

Browse files
committed
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: Takashi Iwai <tiwai@suse.de>
1 parent e454ff8 commit 457f3c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/pci/hda/hda_intel.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2269,7 +2269,7 @@ static int azx_probe_continue(struct azx *chip)
22692269
pm_runtime_put_autosuspend(&pci->dev);
22702270

22712271
out_free:
2272-
if (!hda->need_i915_power)
2272+
if (err < 0 || !hda->need_i915_power)
22732273
display_power(chip, false);
22742274

22752275
i915_power_fail:

0 commit comments

Comments
 (0)