diff options
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r-- | drivers/of/fdt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index 9cc1461aac7d..4734223ab702 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c | |||
@@ -1181,7 +1181,13 @@ int __init __weak early_init_dt_reserve_memory_arch(phys_addr_t base, | |||
1181 | 1181 | ||
1182 | static void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) | 1182 | static void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) |
1183 | { | 1183 | { |
1184 | return memblock_alloc(size, align); | 1184 | void *ptr = memblock_alloc(size, align); |
1185 | |||
1186 | if (!ptr) | ||
1187 | panic("%s: Failed to allocate %llu bytes align=0x%llx\n", | ||
1188 | __func__, size, align); | ||
1189 | |||
1190 | return ptr; | ||
1185 | } | 1191 | } |
1186 | 1192 | ||
1187 | bool __init early_init_dt_verify(void *params) | 1193 | bool __init early_init_dt_verify(void *params) |