Commit 3e455cf5 authored by Guo Ren's avatar Guo Ren

csky: Fixup update_mmu_cache called with user io mapping

The function update_mmu_cache could be called by user-io mapping.
There is no space of struct page in mem_map for the pte. Just
ignore the user-io mmaping in update_mmu_cache.
Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
parent 78bfa70b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment