mm: Fix heap corruption in protected build

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa
2020-04-22 08:40:05 +09:00
committed by Xiang Xiao
parent 79589eca1a
commit ad9db974cb
2 changed files with 0 additions and 6 deletions
-2
View File
@@ -175,11 +175,9 @@ void mm_initialize(FAR struct mm_heap_s *heap, FAR void *heapstart,
heap->mm_nregions = 0;
#endif
#if defined(CONFIG_BUILD_FLAT) || defined(__KERNEL__)
/* Initialize mm_delaylist */
heap->mm_delaylist = NULL;
#endif
/* Initialize the node array */