]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/mm/fault_32.c
x86: clean up pte_exec
[linux-2.6-omap-h63xx.git] / arch / x86 / mm / fault_32.c
index 41c31968a74ce86a82c664c838234feed01fe6f6..f7972ae7da07522a03078d5bb01957c94c6b843d 100644 (file)
@@ -615,7 +615,7 @@ no_context:
                if (error_code & PF_INSTR) {
                        pte_t *pte = lookup_address(address);
 
-                       if (pte && pte_present(*pte) && !pte_exec_kernel(*pte))
+                       if (pte && pte_present(*pte) && !pte_exec(*pte))
                                printk(KERN_CRIT "kernel tried to execute "
                                        "NX-protected page - exploit attempt? "
                                        "(uid: %d)\n", current->uid);