mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
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:
committed by
Xiang Xiao
parent
34113810bd
commit
12ff2212f5
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user