Skip to content
  • Takashi Iwai's avatar
    ALSA: x86: Fix potential crash at error path · c77a6edb
    Takashi Iwai authored
    When LPE audio driver gets some error at probing, it may lead to a
    crash because of canceling the pending work in hdmi_lpe_audio_free(),
    since some of ports might be still not initialized.
    
    For assuring the proper free of each port, initialize all ports at the
    beginning of the probe.
    
    Fixes: b4eb0d52
    
     ("ALSA: x86: Split snd_intelhad into card and PCM specific structures")
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    c77a6edb