]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit4da63c6fc426023d1a20e45508c47d7d68c6a53d
tree6c9781df9a0f74afc9f9b5144db72623228ac05a
parentcd50065b3be83a705635550c04e368f2a4cc44d0
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