Skip to content

Commit

Permalink
ALSA: hda - Fix yet another i915 pointer leftover in error path
Browse files Browse the repository at this point in the history
The hdac_acomp object in hdac_i915.c is left as assigned even after
binding with i915 actually fails, and this leads to the WARN_ON() at
the next load of the module.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94736
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Mar 29, 2016
1 parent faafd03 commit 97cc2ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/hda/hdac_i915.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ int snd_hdac_i915_init(struct hdac_bus *bus)
out_err:
kfree(acomp);
bus->audio_component = NULL;
hdac_acomp = NULL;
dev_info(dev, "failed to add i915 component master (%d)\n", ret);

return ret;
Expand Down

0 comments on commit 97cc2ed

Please sign in to comment.