fs: fix bugs that broke processes in userspace
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
c8791b6718
commit
b603eacbb7
3 changed files with 6 additions and 7 deletions
|
|
@ -126,7 +126,7 @@ void *krealloc(void *old, size_t size, u64 flags)
|
|||
rbnode_t *node = rbt_search(&kalloc_tree, (u64)old);
|
||||
|
||||
if (!node)
|
||||
return NULL;
|
||||
return kalloc(size, flags);
|
||||
|
||||
struct alloc_entry *entry = (void *)node->value;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue