diff options
-rw-r--r-- | arch/x86/kernel/mpparse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index ae9060cb4481..e8192401da47 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c | |||
@@ -716,10 +716,10 @@ static int __init smp_scan_config(unsigned long base, unsigned long length, | |||
716 | 716 | ||
717 | if (!reserve) | 717 | if (!reserve) |
718 | return 1; | 718 | return 1; |
719 | reserve_bootmem_generic(virt_to_phys(mpf), PAGE_SIZE, | 719 | reserve_bootmem_generic(virt_to_phys(mpf), sizeof(*mpf), |
720 | BOOTMEM_DEFAULT); | 720 | BOOTMEM_DEFAULT); |
721 | if (mpf->physptr) { | 721 | if (mpf->physptr) { |
722 | unsigned long size = PAGE_SIZE; | 722 | unsigned long size = get_mpc_size(mpf->physptr); |
723 | #ifdef CONFIG_X86_32 | 723 | #ifdef CONFIG_X86_32 |
724 | /* | 724 | /* |
725 | * We cannot access to MPC table to compute | 725 | * We cannot access to MPC table to compute |