提交 ed3ffaf7 编写于 作者: D David S. Miller

[SPARC64]: Solidify check in cheetah_check_main_memory().

Need to make sure the address is below high_memory before
passing it to kern_addr_valid().
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 10147570
......@@ -1333,6 +1333,9 @@ static int cheetah_check_main_memory(unsigned long paddr)
{
unsigned long vaddr = PAGE_OFFSET + paddr;
if (vaddr > high_memory)
return 0;
return kern_addr_valid(vaddr);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册