ALSA: hda - Fix race between PM ops and HDA init/probe
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 28 Jul 2015 20:29:56 +0000 (13:29 -0700)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Jul 2015 17:37:26 +0000 (19:37 +0200)
commit342e84490574cbb2a9c5b1d0886a112ad2bcf4d7
tree39b96490d0d103e54602c3bb8d202f386b934c28
parent2d1cb7f658fb9c3ba8f9dab8aca297d4dfdec835
ALSA: hda - Fix race between PM ops and HDA init/probe

PM ops could be triggered before HDA is done initializing
and cause PM to set HDA controller to D3Hot.  This can result
in "CORB reset timeout#2, CORBRP = 65535" and "no codecs
initialized".  Additionally, PM ops can be triggered before
azx_probe_continue finishes (async probe).  This can result
in a NULL deref kernel crash.

To fix this, avoid PM ops if !chip->running.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c