diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/malloc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/malloc.c b/src/lib/malloc.c index 052a53e568..30298064d9 100644 --- a/src/lib/malloc.c +++ b/src/lib/malloc.c @@ -44,7 +44,10 @@ void *memalign(size_t boundary, size_t size) p, free_mem_ptr); printk(BIOS_ERR, "but free_mem_end_ptr is %p\n", free_mem_end_ptr); - die("Error! %s: Out of memory (free_mem_ptr >= free_mem_end_ptr)", __func__); + printk(BIOS_ERR, "Error! %s: Out of memory " + "(free_mem_ptr >= free_mem_end_ptr)", + __func__); + return NULL; } MALLOCDBG("%s %p\n", __func__, p); |