Signed-off-by: Magnus Christensson mch@virtutech.com --- src/mptable.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mptable.c b/src/mptable.c index 5b308ec..391fe5a 100644 --- a/src/mptable.c +++ b/src/mptable.c @@ -62,7 +62,7 @@ mptable_init(void) struct mpt_cpu *cpus = (void*)&config[1]; int i, actual_cpu_count; for (i = 0, actual_cpu_count = 0; i < MaxCountCPUs; i++) { - struct mpt_cpu *cpu = &cpus[i]; + struct mpt_cpu *cpu = &cpus[actual_cpu_count]; int log_cpus = (ebx >> 16) & 0xff; log_cpus = 1UL << fls(log_cpus - 1); /* round up to power of 2 */