aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/mm.c
diff options
context:
space:
mode:
authorMarvin Borner2021-04-17 13:55:51 +0200
committerMarvin Borner2021-04-17 13:55:51 +0200
commit89b5b9acf6037fc1a87f9e85c64831187a47ba94 (patch)
tree54b2cdc2dbedfb8594a2d89730805467602f7d93 /kernel/features/mm.c
parent7485f7e441ca892876d9401380aa77610eb85f76 (diff)
Implemented I/O polling
Diffstat (limited to 'kernel/features/mm.c')
-rw-r--r--kernel/features/mm.c2
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;