WSL2-Linux-Kernel/sound/hda
Mark Pearson a14a621999 ALSA: hda: ignore invalid NHLT table
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>
2021-03-04 09:14:36 +01:00
..
ext ALSA: hda: fix kernel-doc warnings 2021-03-02 10:21:36 +01:00
Kconfig ALSA: hda: move Intel SoundWire ACPI scan to dedicated module 2021-03-02 15:33:00 +01:00
Makefile ALSA: hda: move Intel SoundWire ACPI scan to dedicated module 2021-03-02 15:33:00 +01:00
array.c
hda_bus_type.c
hdac_bus.c ALSA: hda: add link_power op to hdac_bus_ops 2021-02-08 15:56:35 +01:00
hdac_component.c
hdac_controller.c ALSA: hda: add link_power op to hdac_bus_ops 2021-02-08 15:56:35 +01:00
hdac_device.c
hdac_i915.c
hdac_regmap.c ALSA: hda: fix kernel-doc warnings 2021-03-02 10:21:36 +01:00
hdac_stream.c
hdac_sysfs.c ALSA: hda: Constify static attribute_group 2021-01-31 09:50:11 +01:00
hdmi_chmap.c
intel-dsp-config.c ALSA: hda: move Intel SoundWire ACPI scan to dedicated module 2021-03-02 15:33:00 +01:00
intel-nhlt.c ALSA: hda: ignore invalid NHLT table 2021-03-04 09:14:36 +01:00
intel-sdw-acpi.c ALSA: hda: intel-sdw-acpi: add missing include files 2021-03-02 15:33:17 +01:00
local.h
trace.c
trace.h