diff options
author | Tony Lindgren <tony@atomide.com> | 2019-08-13 13:40:10 +0300 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2019-08-13 13:40:10 +0300 |
commit | 58e16d792a6a8c6b750f637a4649967fcac853dc (patch) | |
tree | 778a940499ecfc6fb2d811dbfef735913d30618a /arch/x86/kernel/mpparse.c | |
parent | fa8397e45c64e60c80373bc19ee56e42a6bed9b6 (diff) | |
parent | a304f483b6b00d42bde41c45ca52c670945348e2 (diff) | |
download | linux-58e16d792a6a8c6b750f637a4649967fcac853dc.tar.xz |
Merge branch 'ti-sysc-fixes' into fixes
Diffstat (limited to 'arch/x86/kernel/mpparse.c')
-rw-r--r-- | arch/x86/kernel/mpparse.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/arch/x86/kernel/mpparse.c b/arch/x86/kernel/mpparse.c index 1bfe5c6e6cfe..afac7ccce72f 100644 --- a/arch/x86/kernel/mpparse.c +++ b/arch/x86/kernel/mpparse.c @@ -546,17 +546,15 @@ void __init default_get_smp_config(unsigned int early) * local APIC has default address */ mp_lapic_addr = APIC_DEFAULT_PHYS_BASE; - return; + goto out; } pr_info("Default MP configuration #%d\n", mpf->feature1); construct_default_ISA_mptable(mpf->feature1); } else if (mpf->physptr) { - if (check_physptr(mpf, early)) { - early_memunmap(mpf, sizeof(*mpf)); - return; - } + if (check_physptr(mpf, early)) + goto out; } else BUG(); @@ -565,7 +563,7 @@ void __init default_get_smp_config(unsigned int early) /* * Only use the first configuration found. */ - +out: early_memunmap(mpf, sizeof(*mpf)); } |