diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-02-29 08:16:17 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:20 -0400 |
commit | 40ac8c4f208111cdc1542ccc9feb21b98a6b0219 (patch) | |
tree | 25052332ce849c663e309822a3373709a2a45564 /sound/pci/hda/patch_sigmatel.c | |
parent | fd6640fa2d8b5f5f471aad5abd8ce5d6995df563 (diff) |
[ALSA] hda-codec - Fix the array over-range access with stac92hd71bxx codec
Add the check of the array range for dac_nids to prevent the over-range
access.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_sigmatel.c')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index f6c02c0b1f8d..6c85e7e81034 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -2363,7 +2363,7 @@ static int stac92xx_auto_create_multi_out_ctls(struct hda_codec *codec, | |||
2363 | unsigned int wid_caps, pincap; | 2363 | unsigned int wid_caps, pincap; |
2364 | 2364 | ||
2365 | 2365 | ||
2366 | for (i = 0; i < cfg->line_outs; i++) { | 2366 | for (i = 0; i < cfg->line_outs && i < spec->multiout.num_dacs; i++) { |
2367 | if (!spec->multiout.dac_nids[i]) | 2367 | if (!spec->multiout.dac_nids[i]) |
2368 | continue; | 2368 | continue; |
2369 | 2369 | ||