Skip to content
Commit af5c2bd1 authored by Vegard Nossum's avatar Vegard Nossum Committed by Ingo Molnar
Browse files

x86: fix virt_addr_valid() with CONFIG_DEBUG_VIRTUAL=y, v2



virt_addr_valid() calls __pa(), which calls __phys_addr(). With
CONFIG_DEBUG_VIRTUAL=y, __phys_addr() will kill the kernel if the
address *isn't* valid. That's clearly wrong for virt_addr_valid().

We also incorporate the debugging checks into virt_addr_valid().

Signed-off-by: default avatarVegard Nossum <vegardno@ben.ifi.uio.no>
Acked-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7f2f49a5
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