diff --git a/include/linux/mm.h b/include/linux/mm.h index f223ac26b5d97e809cbacdeea71a72c29a2d4714..b530c99e8e8163222e128985bbef09d9c218cc05 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -2386,6 +2386,9 @@ static inline bool page_is_guard(struct page *page) return false; page_ext = lookup_page_ext(page); + if (unlikely(!page_ext)) + return false; + return test_bit(PAGE_EXT_DEBUG_GUARD, &page_ext->flags); } #else