Skip to content
Commit a14a6219 authored by Mark Pearson's avatar Mark Pearson Committed by Takashi Iwai
Browse files

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: default avatarPhilipp Leskovitz <philipp.leskovitz@secunet.com>
Reported-by: default avatarPhilipp Leskovitz <philipp.leskovitz@secunet.com>
Signed-off-by: default avatarMark Pearson <markpearson@lenovo.com>
Reviewed-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210302141003.7342-1-markpearson@lenovo.com
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 97991108
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment