mm: mm_heap: Fix deadlock in mm_trysemaphore in SMP mode

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
This commit is contained in:
Masayuki Ishikawa 2020-04-13 11:46:27 +09:00 committed by Xiang Xiao
parent 34113810bd
commit 12ff2212f5

View File

@ -179,7 +179,8 @@ int mm_trysemaphore(FAR struct mm_heap_s *heap)
if (my_pid < 0)
{
return my_pid;
ret = my_pid;
goto errout;
}
/* Does the current task already hold the semaphore? Is the current