Skip to content

Commit

Permalink
core: mm: check return value from tee_mm_init()
Browse files Browse the repository at this point in the history
Check return value from tee_mm_init() function.

Signed-off-by: Sahil Malhotra <[email protected]>
Fixes: c596d83 ("core: add phys_mem allocation functions")
  • Loading branch information
sahilnxp committed Nov 21, 2024
1 parent da60388 commit f6e82ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/mm/phys_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ static tee_mm_pool_t *init_pool(paddr_t b, paddr_size_t sz, uint32_t flags)
if (!pool)
panic();

tee_mm_init(pool, b, sz, CORE_MMU_USER_CODE_SHIFT, flags);
if (!tee_mm_init(pool, b, sz, CORE_MMU_USER_CODE_SHIFT, flags))
panic();

return pool;
}

Expand Down

0 comments on commit f6e82ad

Please sign in to comment.