]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/x86/kernel/apic.c
x86: avoid early crash in disable_local_APIC()
[~shefty/rdma-dev.git] / arch / x86 / kernel / apic.c
index 0f830e4f56751d0d8499ac64d549b72ee12203a2..d19aa3aab62b45b44f05a19f9ae7efd6937d9a52 100644 (file)
@@ -895,6 +895,10 @@ void disable_local_APIC(void)
 {
        unsigned int value;
 
+       /* APIC hasn't been mapped yet */
+       if (!apic_phys)
+               return;
+
        clear_local_APIC();
 
        /*