Skip to content
Commit 495ec83b authored by Guo Ren's avatar Guo Ren
Browse files

csky: BUGFIX pfn_valid() for highmem



The variable "high_memory" is higmem_start. If the pfn is in highmem
then the return value of pfn_valid() will be false, but we expect true.

This will cause problem in __update_cache():

	pfn = pte_pfn(pte);
	if (unlikely(!pfn_valid(pfn)))
		return;

It will directly return without flush_cache.

Signed-off-by: default avatarGuo Ren <ren_guo@c-sky.com>
parent a1ba759d
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