projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
diff --git
a/arch/csky/abiv2/cacheflush.c
b/arch/csky/abiv2/cacheflush.c
index
790f1eb
..
39c5139
100644
(file)
--- a/
arch/csky/abiv2/cacheflush.c
+++ b/
arch/csky/abiv2/cacheflush.c
@@
-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;