|
@@ -642,6 +642,7 @@ static int __cpuinit _acpi_map_lsapic(acpi_handle handle, int *pcpu)
|
|
kfree(buffer.pointer);
|
|
kfree(buffer.pointer);
|
|
buffer.length = ACPI_ALLOCATE_BUFFER;
|
|
buffer.length = ACPI_ALLOCATE_BUFFER;
|
|
buffer.pointer = NULL;
|
|
buffer.pointer = NULL;
|
|
|
|
+ lapic = NULL;
|
|
|
|
|
|
if (!alloc_cpumask_var(&tmp_map, GFP_KERNEL))
|
|
if (!alloc_cpumask_var(&tmp_map, GFP_KERNEL))
|
|
goto out;
|
|
goto out;
|
|
@@ -650,7 +651,7 @@ static int __cpuinit _acpi_map_lsapic(acpi_handle handle, int *pcpu)
|
|
goto free_tmp_map;
|
|
goto free_tmp_map;
|
|
|
|
|
|
cpumask_copy(tmp_map, cpu_present_mask);
|
|
cpumask_copy(tmp_map, cpu_present_mask);
|
|
- acpi_register_lapic(physid, lapic->lapic_flags & ACPI_MADT_ENABLED);
|
|
|
|
|
|
+ acpi_register_lapic(physid, ACPI_MADT_ENABLED);
|
|
|
|
|
|
/*
|
|
/*
|
|
* If mp_register_lapic successfully generates a new logical cpu
|
|
* If mp_register_lapic successfully generates a new logical cpu
|