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:
ligd
2021-03-16 20:42:53 +08:00
parent f5805d25c0
commit 90a75dfedf
+2 -2
View File
@@ -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