x86: acpi: Fix madt lapic generation
authorGeorge McCollister <george.mccollister@gmail.com>
Tue, 7 Jun 2016 18:40:18 +0000 (13:40 -0500)
committerBin Meng <bmeng.cn@gmail.com>
Sun, 12 Jun 2016 04:19:35 +0000 (12:19 +0800)
commit8a1a7595cfbcb12d01a5c1f486ebfd50af90c34c
tree1da1fecd1f5351708d332e80c3be032049f44606
parent6b3943f1b04be60f147ee540fbd72c4c7ea89f80
x86: acpi: Fix madt lapic generation

An accumulated length was incorrectly added to current each pass
through the loop. On system with more than 2 cores this caused a
corrupt MADT to be generated.

Signed-off-by: George McCollister <george.mccollister@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/lib/acpi_table.c