W-M-R commented on code in PR #15461:
URL: https://github.com/apache/nuttx/pull/15461#discussion_r1909835721


##########
mm/mm_heap/mm_free.c:
##########
@@ -49,6 +49,8 @@ static void add_delaylist(FAR struct mm_heap_s *heap, FAR 
void *mem)
 
   /* Delay the deallocation until a more appropriate time. */
 
+  kasan_hw_close();
+
   flags = up_irq_save();

Review Comment:
   
![image](https://github.com/user-attachments/assets/8df71078-ba52-4363-970c-52069ea0acd4)
   Here, kasan is turned off in the add_delaylist code, because the operation 
of add_delaylist is not locked.



##########
mm/mm_heap/mm_free.c:
##########
@@ -49,6 +49,8 @@ static void add_delaylist(FAR struct mm_heap_s *heap, FAR 
void *mem)
 
   /* Delay the deallocation until a more appropriate time. */
 
+  kasan_hw_close();
+
   flags = up_irq_save();

Review Comment:
   
![image](https://github.com/user-attachments/assets/8df71078-ba52-4363-970c-52069ea0acd4)
   Here, kasan is turned off in the add_delaylist code, because the operation 
of add_delaylist is not locked.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to