Description: fix mutex unlock error
Reviewed-by: zhangfanfan
This commit is contained in:
parent
c69eee403e
commit
e10c9af86f
|
@ -186,7 +186,8 @@ VOID *LOS_DoBrk(VOID *addr)
|
|||
(VOID)LOS_MuxAcquire(&space->regionMux);
|
||||
if ((UINTPTR)alignAddr >= space->mapBase) {
|
||||
VM_ERR("Process heap memory space is insufficient");
|
||||
return (VOID *)-ENOMEM;
|
||||
ret = (VOID *)-ENOMEM;
|
||||
goto REGION_ALLOC_FAILED;
|
||||
}
|
||||
if (space->heapBase == space->heapNow) {
|
||||
region = LOS_RegionAlloc(space, space->heapBase, size,
|
||||
|
|
Loading…
Reference in New Issue