فهرست منبع

[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>
Takashi Iwai 20 سال پیش
والد
کامیت
033a1f1092
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      sound/pci/hda/hda_codec.h

+ 1 - 1
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;