summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2005-05-25 16:41:43 +0200
committerJaroslav Kysela <perex@suse.cz>2005-05-29 10:14:53 +0200
commit033a1f10923bdc3646750eef471a618f9d4c074b (patch)
treedd43abc3ce2dca45c3bbb397beed5692e26e0096
parent9baf6507ff4d0dcab22460e8785582d4eaadebeb (diff)
downloadop-kernel-dev-033a1f10923bdc3646750eef471a618f9d4c074b.zip
op-kernel-dev-033a1f10923bdc3646750eef471a618f9d4c074b.tar.gz
[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 <tiwai@suse.de>
-rw-r--r--sound/pci/hda/hda_codec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_codec.h b/sound/pci/hda/hda_codec.h
index 43fc245..1b12035 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;
OpenPOWER on IntegriCloud