arm64: early_alloc: Fix check for allocation failure
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Fri, 20 Nov 2015 17:45:40 +0000 (17:45 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 25 Nov 2015 12:14:25 +0000 (12:14 +0000)
commit7142392dcac240b37cce8a246225bb11213246cc
treecfe5f8ae15b57016f2fd204ea39830c669b56eb1
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4
arm64: early_alloc: Fix check for allocation failure

In early_alloc we check if the memblock_alloc failed by checking
the virtual address of the result, which will never fail. This patch
fixes it to check the actual result for failure.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/mmu.c