]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/x86/mm/fault.c
x86: avoid theoretical vmalloc fault loop
[karo-tx-linux.git] / arch / x86 / mm / fault.c
index 455f3fe67b42412c8acda3eb63e33678ebec1845..da1973b9a6e2c3a18163fb69f75ac27cf6e78078 100644 (file)
@@ -534,7 +534,7 @@ static int vmalloc_fault(unsigned long address)
           happen within a race in page table update. In the later
           case just flush. */
 
-       pgd = pgd_offset(current->mm ?: &init_mm, address);
+       pgd = pgd_offset(current->active_mm, address);
        pgd_ref = pgd_offset_k(address);
        if (pgd_none(*pgd_ref))
                return -1;