Check if gARMPagingMethod is null

in arch_vm_translation_map_is_kernel_page_accessible. Fix borrowed from x86
(commit 428b9e758c30a95154f5ad0d974894ef9ae133d6).

Signed-off-by: Adrien Destugues <pulkomandy@pulkomandy.tk>

Fixes #11107.
This commit is contained in:
Arvind S Raj 2014-08-07 17:22:48 +05:30 committed by Adrien Destugues
parent 295ded8c41
commit fea7eea417

View File

@ -145,5 +145,8 @@ bool
arch_vm_translation_map_is_kernel_page_accessible(addr_t virtualAddress,
uint32 protection)
{
if(!gARMPagingMethod)
return true;
return gARMPagingMethod->IsKernelPageAccessible(virtualAddress, protection);
}