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)
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>

No differences found