Description: fix mutex unlock error

Reviewed-by: zhangfanfan
This commit is contained in:
likailong 2020-12-23 16:34:37 +08:00
parent c69eee403e
commit e10c9af86f
1 changed files with 2 additions and 1 deletions

View File

@ -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,