]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix broken PM due to incomplete i915 initialization
authorTakashi Iwai <tiwai@suse.de>
Tue, 15 Jul 2014 13:19:43 +0000 (15:19 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Jul 2014 13:19:43 +0000 (15:19 +0200)
commit6f41842020a5c2ce55c315e0f355822d3353852f
tree6c9781df9a0f74afc9f9b5144db72623228ac05a
parent57effc0b7a744057259bab98254d2a9107f228e8
ALSA: hda - Fix broken PM due to incomplete i915 initialization

When the initialization of Intel HDMI controller fails due to missing
i915 kernel symbols (e.g. HD-audio is built in while i915 is module),
the driver discontinues the probe.  However, since the probe was done
asynchronously, the driver object still remains, thus the relevant PM
ops are still called at suspend/resume. This results in the bad access
to the incomplete audio card object, eventually leads to Oops or stall
at PM.

This patch adds the missing checks of chip->init_failed flag at each
PM callback in order to fix the problem above.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=79561
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c