Skip to content
Commit c77a6edb authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: x86: Fix potential crash at error path

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>
parent 35014406
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment