diff options
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r-- | kernel/features/mm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/mm.c b/kernel/features/mm.c index 9f0bd07..4ed3ab9 100644 --- a/kernel/features/mm.c +++ b/kernel/features/mm.c @@ -512,7 +512,7 @@ res memory_sys_alloc(struct page_dir *dir, u32 size, u32 *addr, u32 *id, u8 shar res memory_sys_free(struct page_dir *dir, u32 addr) { - if (!addr || !memory_readable((void *)addr)) + if (!memory_readable((void *)addr)) return -EFAULT; struct list *links = proc_current()->memory; |