mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 16:22:41 -04:00
ALSA: hda - Fix Oops in smart51 parsing in VIA codec
Typical off-by-one thinko. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user