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

mm: common: reset mappings during simple mapping failures



For mapping operations in sys_mm_drv_simple_map_region() and
sys_mm_drv_simple_map_array(), when there was an error with
mapping any pages, it would simple return an error, leaving
already mapped pages still mapped. This modifies the behavior
where any failure during the whole mapping operation will
unmap the already mapped pages.

This also modifies the remapping and moving functions to
reset mappings when error is encountered.

Fixes #73121

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