diff options
author | Anton Kling <anton@kling.gg> | 2024-06-25 19:20:03 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-06-25 19:20:03 +0200 |
commit | edac853e8935164113bda594865cd48c91893d11 (patch) | |
tree | adcc40c27a658c7601c410f3e49fbc762544979b /kernel/lib | |
parent | 31743482bbdceeb2a0e52ae430ce1afad853e7e9 (diff) |
VFS: dup2 fixes
Diffstat (limited to 'kernel/lib')
-rw-r--r-- | kernel/lib/relist.c | 3 |
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; } |