]> 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)
commit51c71e2590b4190c15e0ccdafd831bef74ee2a8e
tree81f571d7a1c951c58014d3981cc8250c911a256c
parentdd53f063e50f912cc7d9a46126b6d37c0a8ed002
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: ddfd7aa7a9c4 ("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