summaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/pgtable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-mips/pgtable.h b/include/asm-mips/pgtable.h
index 22bff345d..8736bc35b 100644
--- a/include/asm-mips/pgtable.h
+++ b/include/asm-mips/pgtable.h
@@ -295,7 +295,7 @@ extern inline int pmd_bad(pmd_t pmd)
extern inline int pmd_present(pmd_t pmd)
{
- return pmd_val(pmd);
+ return (pmd_val(pmd) != (unsigned long) invalid_pte_table);
}
extern inline void pmd_clear(pmd_t *pmdp)