commit | 2f359aeacfab19f18c3a55b92c45fd0753408603 | [log] [tgz] |
---|---|---|
author | Neil Armstrong <narmstrong@baylibre.com> | Tue Oct 12 14:36:30 2021 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Oct 13 06:24:56 2021 -0400 |
tree | 6ba2a183043258803e60e0689bd28b78fe1e86ea | |
parent | 513d691dba04c71ac6f84074a2014f4cbe57c3bd [diff] |
mmu: fix virt_region_alloc() unused region free when aligned In the case where the aligned memory range is on top of the allocated memory range, freeing the 0 sized top unused memory will trigger an assert in the virt_region_free() call since vaddr could be equal to Z_VIRT_REGION_END_ADDR. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>