提交 21d45d2b 编写于 作者: T Takashi Iwai

ALSA: hda - Fix Oops in smart51 parsing in VIA codec

Typical off-by-one thinko.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 e4770629
......@@ -1802,7 +1802,7 @@ static void mangle_smart51(struct hda_codec *codec)
for (j = 0; j < nums; j++)
if (ins[pins[j]].type < ins[i].type) {
memmove(pins + j + 1, pins + j,
(nums - j - 1) * sizeof(int));
(nums - j) * sizeof(int));
break;
}
pins[j] = i;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册