]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda: hdmi - fix kernel oops caused by invalid PCM idx
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Fri, 29 Nov 2019 14:37:55 +0000 (16:37 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Nov 2019 14:41:35 +0000 (15:41 +0100)
commitec068ed92b9491fe8c9180ded49d60b2015fd098
treef15fa9bc7be4cf9ee2f7c1bccfbce847715656e8
parenta04105642850cefaae4c611ab35df914c7a44d9d
ALSA: hda: hdmi - fix kernel oops caused by invalid PCM idx

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: 4d08690e6bab 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>
sound/pci/hda/patch_hdmi.c