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:
parent
34113810bd
commit
12ff2212f5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user