-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Labels
area: Memory ManagementbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug
Description
Describe the bug
If asserts are disabled in a build, both generic and (probably derived from them) hardware-specific memory mapping functions like sys_mm_drv_simple_map_region(), sys_mm_drv_map_region(), sys_mm_drv_simple_map_array() can return in an error case without freeing resources, that they have been able to allocate.
Expected behavior
In failure cases functions should clean up resources, that they've managed to allocate before the failure.
Impact
In error cases can lead to resource exhaustion.
pillo79
Metadata
Metadata
Assignees
Labels
area: Memory ManagementbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bugMedium impact/importance bug