From: Takashi Iwai Date: Wed, 25 May 2005 14:41:43 +0000 (+0200) Subject: [ALSA] hda-code: Fix the array size of codec list X-Git-Tag: v2.6.13-rc1~68^2~598 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=033a1f10923bdc3646750eef471a618f9d4c074b;p=linux-2.6 [ALSA] hda-code: Fix the array size of codec list HDA Codec driver Fixed the wrong array size of the codec pointer list. Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h index 43fc245d9a..1b1203539e 100644 --- a/sound/pci/hda/hda_codec.h +++ b/sound/pci/hda/hda_codec.h @@ -419,7 +419,7 @@ struct hda_bus { /* codec linked list */ struct list_head codec_list; - struct hda_codec *caddr_tbl[HDA_MAX_CODEC_ADDRESS]; /* caddr -> codec */ + struct hda_codec *caddr_tbl[HDA_MAX_CODEC_ADDRESS + 1]; /* caddr -> codec */ struct semaphore cmd_mutex;