aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorMarvin Borner2021-03-13 13:33:26 +0100
committerMarvin Borner2021-03-13 13:33:50 +0100
commit8176351e1a3d1598bedbc007897d530475942275 (patch)
treed7745b95abf8e7af9cee1fcfc387137f607c735f /libc
parent606774e6b0e0a2d36139983b85c8675b2228a9ff (diff)
Nicü
Diffstat (limited to 'libc')
-rw-r--r--libc/alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/alloc.c b/libc/alloc.c
index 083f2c0..4ccf35f 100644
--- a/libc/alloc.c
+++ b/libc/alloc.c
@@ -139,7 +139,7 @@ static void *_malloc(u32 req_size)
l_mem_root = allocate_new_page(size);
if (l_mem_root == NULL) {
liballoc_unlock();
- return NULL;
+ panic("Malloc failed!\n");
}
}
@@ -295,6 +295,7 @@ static void *_malloc(u32 req_size)
liballoc_unlock();
+ panic("Malloc failed!\n");
return NULL;
}
@@ -361,6 +362,7 @@ static void *_realloc(void *ptr, u32 size)
if (min->magic != LIBALLOC_MAGIC) {
liballoc_unlock();
+ panic("Malloc failed!\n");
return NULL;
}