]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
ALSA: hda: hdmi - fix kernel oops caused by invalid PCM idx
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Wed, 12 Aug 2020 05:58:19 +0000 (13:58 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Fri, 4 Sep 2020 19:30:12 +0000 (16:30 -0300)
commit99c0e4d83e50c6bed45a71de5682caa5cb1f2473
tree9e11c3e987a23da42492a4358d331bda779a118b
parent7560e90a85dd34fc638e947e39ecc2904af1d2b2
ALSA: hda: hdmi - fix kernel oops caused by invalid PCM idx

BugLink: https://bugs.launchpad.net/bugs/1867704
Add additional check in hdmi_find_pcm_slot() to not return
a pcm index that points to unallocated pcm. This could happen
if codec driver is set up in codec->mst_no_extra_pcms mode.
On some platforms, this leads to a kernel oops in snd_ctl_notify(),
called via update_eld().

BugLink: https://github.com/thesofproject/linux/issues/1536
Fixes: 5398e94fb753 ALSA: hda - Add DP-MST support for NVIDIA codecs
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20191129143756.23941-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(cherry picked from commit 0c0fe9e6b95ce2e9e2c83bef5563cf223e849eda)
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-By: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
sound/pci/hda/patch_hdmi.c