Merge tag 'thermal-v5.20-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/therma...
[linux-2.6-microblaze.git] / arch / csky / abiv2 / cacheflush.c
index 790f1eb..39c5139 100644 (file)
@@ -12,6 +12,9 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
        unsigned long addr;
        struct page *page;
 
+       if (!pfn_valid(pte_pfn(*pte)))
+               return;
+
        page = pfn_to_page(pte_pfn(*pte));
        if (page == ZERO_PAGE(0))
                return;