Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[ALSA] hda-codec - Fix connection list in generic parser

Fix the retrival of widget connection list in the generic parser.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>

authored by

Takashi Iwai and committed by
Jaroslav Kysela
0bbed758 490cbd92

+1 -1
+1 -1
sound/pci/hda/hda_generic.c
··· 133 133 return -ENOMEM; 134 134 } 135 135 } 136 - memcpy(node->conn_list, conn_list, nconns); 136 + memcpy(node->conn_list, conn_list, nconns * sizeof(hda_nid_t)); 137 137 node->nconns = nconns; 138 138 node->wid_caps = get_wcaps(codec, nid); 139 139 node->type = (node->wid_caps & AC_WCAP_TYPE) >> AC_WCAP_TYPE_SHIFT;