]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - sound/pci/hda/patch_realtek.c
[ALSA] hda-codec - Fix possible array overflow
authorTakashi Iwai <tiwai@suse.de>
Mon, 22 Oct 2007 15:20:10 +0000 (17:20 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 23 Oct 2007 06:07:55 +0000 (08:07 +0200)
commit41923e441305728ba3640e773e55d16e4769145c
treeeeaad57d30237f5f26851f8f72a24485177ba077
parent7507e8da2f21476007501f04d8bce2b7d0cb3971
[ALSA] hda-codec - Fix possible array overflow

dac_nids arrays in each codec support code may have up to 5 items
when assigned from the auto-configurator.  Some codec codes have
less numbers than the possible max.  This patch defines the constant
and fixes the array definitions.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/hda/hda_local.h
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_cmedia.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_via.c