lib: fs: fix dangling address space handle
This commit is contained in:
@@ -75,6 +75,7 @@ struct fs_context *fs_context_create(struct fs_allocator *alloc)
|
||||
TEMP_OBJECT_SIZE,
|
||||
VM_PROT_READ | VM_PROT_WRITE | VM_PROT_USER,
|
||||
&temp_buffer);
|
||||
kern_handle_close(address_space);
|
||||
if (status != KERN_OK) {
|
||||
kern_handle_close(ctx->ctx_temp_object);
|
||||
kern_handle_close(ctx->ctx_vm_controller);
|
||||
|
||||
Reference in New Issue
Block a user