mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
mm/tlsf: fix mm_checkcorruption failed, caused by mm_takesemaphore() param error
Change-Id: Id3fc81754f623c53151ba2ae02c0271008d5f3e3 Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
+2
-2
@@ -574,7 +574,7 @@ void mm_checkcorruption(FAR struct mm_heap_s *heap)
|
||||
}
|
||||
else
|
||||
{
|
||||
mm_takesemaphore(heap);
|
||||
mm_takesemaphore(impl);
|
||||
}
|
||||
|
||||
/* Check tlsf control block in the first pass */
|
||||
@@ -596,7 +596,7 @@ void mm_checkcorruption(FAR struct mm_heap_s *heap)
|
||||
}
|
||||
else
|
||||
{
|
||||
mm_givesemaphore(heap);
|
||||
mm_givesemaphore(impl);
|
||||
}
|
||||
}
|
||||
#undef region
|
||||
|
||||
Reference in New Issue
Block a user