forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 zephyrproject-rtos#73121 Signed-off-by: Daniel Leung <[email protected]>
- Loading branch information
Showing
1 changed file
with
150 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters