diff options
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index 3d83c3b84f0e..22e474876133 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c | |||
@@ -507,6 +507,9 @@ unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap) | |||
507 | { | 507 | { |
508 | struct page *page; | 508 | struct page *page; |
509 | 509 | ||
510 | if (!pfn_valid(pte_pfn(pte))) | ||
511 | return pp; | ||
512 | |||
510 | page = pte_page(pte); | 513 | page = pte_page(pte); |
511 | 514 | ||
512 | /* page is dirty */ | 515 | /* page is dirty */ |