lib: sysmem: goto out when alloc failed

Change-Id: I8f6fd82f7367c49596475a88bafd19137e2f2f7c
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
Joseph Chen 2019-05-14 19:33:47 +08:00
parent 44f308bd53
commit 661cbb0b92
1 changed files with 1 additions and 0 deletions

View File

@ -362,6 +362,7 @@ static void *sysmem_alloc_align_base(enum memblk_id id,
} else {
SYSMEM_E("Failed to alloc \"%s\" at 0x%08lx - 0x%08lx\n",
name, (ulong)base, (ulong)(base + size));
goto out;
}
SYSMEM_D("Exit alloc: \"%s\", paddr=0x%08lx, size=0x%08lx, align=0x%x, anywhere=%d\n",