lib: sysmem: goto out when alloc failed
Change-Id: I8f6fd82f7367c49596475a88bafd19137e2f2f7c Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
This commit is contained in:
parent
44f308bd53
commit
661cbb0b92
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue