mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 21:18:23 +00: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:
parent
f5805d25c0
commit
90a75dfedf
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue