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)
commit71121d9fcc494453b9311992de220abb47dde3f1
tree206f27537829d91f92cd80a0394ba3a77c3d7519
parent4ac55982907e1d48e64feaa56be91b9b52d3714d
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