linux-stable/sound
Mark Pearson 537653a069 ALSA: hda: ignore invalid NHLT table
[ Upstream commit a14a621999 ]

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:35:20 +02:00
..
ac97
aoa
arm
atmel
core ALSA: seq: oss: Fix missing error check in snd_seq_oss_synth_make_info() 2021-01-27 11:47:39 +01:00
drivers ALSA: opl3: fix infoleak in opl3 2020-07-16 08:16:42 +02:00
firewire ALSA: dice: fix null pointer dereference when node is disconnected 2021-03-24 11:26:34 +01:00
hda ALSA: hda: ignore invalid NHLT table 2021-03-30 14:35:20 +02:00
i2c
isa ALSA: isa/wavefront: prevent out of bounds write in ioctl 2020-06-24 17:50:11 +02:00
mips
oss
parisc
pci ALSA: hda/realtek: Apply headset-mic quirks for Xiaomi Redmibook Air 2021-03-24 11:26:34 +01:00
pcmcia
ppc
sh ALSA: sh: Fix compile warning wrt const 2020-02-24 08:36:42 +01:00
soc ASoC: simple-card-utils: Do not handle device clock 2021-03-24 11:26:37 +01:00
sparc
spi
synth
usb ALSA: usb-audio: Apply the control quirk to Plantronics headsets 2021-03-17 17:03:47 +01:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c