Skip to content
Commit fa6d7cec authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

x86: mmu/mem_domain: don't translate address before null check



When adding a new thread to memory domain, there is a NULL check
to figure out if a thread is being migrated to another memory
domain. However, the NULL check is AFTER physical-to-virtual
address translation which means (NULL + offset) != NULL anymore.
This results in calling reset_region() with an invalid page table
pointer. Fix this by doing the NULL check before address
translation.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent ee3d345c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment