]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - possible read past array alc88[02]_parse_auto_config()
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 10 Nov 2009 19:11:55 +0000 (20:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 11 Nov 2009 07:07:05 +0000 (08:07 +0100)
commit31af9d100855170bf917eb54e51ccb2eb4808ca3
tree206f27537829d91f92cd80a0394ba3a77c3d7519
parent22bff912eb5886a9edeebcc587ea31e1551b4307
ALSA: hda - possible read past array alc88[02]_parse_auto_config()

The test of index `i' is after the read - too late - and
unsafe: if snd_hda_get_connections() fails in the last
iteration a read beyond the array is possible.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c