[PATCH] ppc64: Fix the lazy icache/dcache code for non-RAM pages
[linux-2.6-microblaze.git] / arch / powerpc / mm / hash_utils_64.c
index 3d83c3b..22e4748 100644 (file)
@@ -507,6 +507,9 @@ unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap)
 {
        struct page *page;
 
+       if (!pfn_valid(pte_pfn(pte)))
+               return pp;
+
        page = pte_page(pte);
 
        /* page is dirty */