summaryrefslogtreecommitdiff
path: root/kernel/lib/relist.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-25 19:20:03 +0200
committerAnton Kling <anton@kling.gg>2024-06-25 19:20:03 +0200
commitedac853e8935164113bda594865cd48c91893d11 (patch)
treeadcc40c27a658c7601c410f3e49fbc762544979b /kernel/lib/relist.c
parent31743482bbdceeb2a0e52ae430ce1afad853e7e9 (diff)
VFS: dup2 fixes
Diffstat (limited to 'kernel/lib/relist.c')
-rw-r--r--kernel/lib/relist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/lib/relist.c b/kernel/lib/relist.c
index 2e45429..5c03ab2 100644
--- a/kernel/lib/relist.c
+++ b/kernel/lib/relist.c
@@ -129,8 +129,7 @@ int relist_set(struct relist *list, u32 index, void *value) {
assert(0);
return 0;
}
- int is_used = (list->bitmap[index / 64] & ((u64)1 << (index % 64)));
- assert(is_used);
+ list->bitmap[index / 64] |= ((u64)1 << (index % 64));
list->entries[index] = value;
return 1;
}