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:
parent
295ded8c41
commit
fea7eea417
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user