Manage RIDs via id_alloc
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m2s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m2s
This commit is contained in:
@@ -100,6 +100,12 @@ int vfs_open (struct procgroup* procgroup, const char* mountpoint, const char* p
|
||||
|
||||
int id = handle->id = id_alloc (&procgroup->vfs_handle_id_alloc);
|
||||
|
||||
if (id < 0) {
|
||||
free (handle);
|
||||
spin_unlock (&procgroup->lock);
|
||||
return -ST_OOM_ERROR;
|
||||
}
|
||||
|
||||
rbtree_insert (struct vfs_handle, &procgroup->vfs_handle_tree, &handle->handle_tree_link,
|
||||
handle_tree_link, id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user