kernel_optimize_test/sound
Mark Pearson 4dc123500c ALSA: hda: ignore invalid NHLT table
[ Upstream commit a14a6219996ee6f6e858d83b11affc7907633687 ]

On some Lenovo systems if the microphone is disabled in the BIOS
only the NHLT table header is created, with no data. This means
the endpoints field is not correctly set to zero - leading to an
unintialised variable and hence invalid descriptors are parsed
leading to page faults.

The Lenovo firmware team is addressing this, but adding a check
preventing invalid tables being parsed is worthwhile.

Tested on a Lenovo T14.

Tested-by: Philipp Leskovitz <philipp.leskovitz@secunet.com>
Reported-by: Philipp Leskovitz <philipp.leskovitz@secunet.com>
Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210302141003.7342-1-markpearson@lenovo.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-30 14:31:48 +02:00
..
ac97
aoa
arm
atmel
core ALSA: pcm: Don't call sync_stop if it hasn't been stopped 2021-03-04 11:37:19 +01:00
drivers
firewire ALSA: dice: fix null pointer dereference when node is disconnected 2021-03-25 09:04:04 +01:00
hda ALSA: hda: ignore invalid NHLT table 2021-03-30 14:31:48 +02:00
i2c
isa
mips
oss
parisc
pci ALSA: hda/realtek: fix mute/micmute LEDs for HP 850 G8 2021-03-25 09:04:05 +01:00
pcmcia
ppc
sh
soc ASoC: simple-card-utils: Do not handle device clock 2021-03-25 09:04:07 +01:00
sparc ALSA: sparc: dbri: fix repeated word 'the' 2020-10-17 09:58:35 +02:00
spi
synth
usb ALSA: usb-audio: Fix unintentional sign extension issue 2021-03-25 09:04:07 +01:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c