]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: Fix potential crash at error path
authorTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2018 07:46:00 +0000 (08:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 28 Feb 2018 07:46:00 +0000 (08:46 +0100)
commita12fe779e056a79f8522af282e7b1868e35434fd
tree81f571d7a1c951c58014d3981cc8250c911a256c
parentd71e3180f386b614668d24d0a8aeff8a04b441dd
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: 875790035523 ("ALSA: x86: Split snd_intelhad into card and PCM specific structures")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c