summaryrefslogtreecommitdiff
path: root/mm/page_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_ext.c')
-rw-r--r--mm/page_ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_ext.c b/mm/page_ext.c
index f02ad1cc7d24..f5938c81b763 100644
--- a/mm/page_ext.c
+++ b/mm/page_ext.c
@@ -187,7 +187,7 @@ struct page_ext *lookup_page_ext(struct page *page)
* This check is also necessary for ensuring page poisoning
* works as expected when enabled
*/
- if (!section->page_ext)
+ if (!section || !section->page_ext)
return NULL;
return section->page_ext + pfn;
}