kernel: handle: add support for allocating a specific handle value
This commit is contained in:
+5
-2
@@ -352,8 +352,11 @@ kern_status_t task_open_handle(
|
||||
kern_handle_t *out)
|
||||
{
|
||||
struct handle *handle_data = NULL;
|
||||
kern_status_t status
|
||||
= handle_table_alloc_handle(task->t_handles, &handle_data, out);
|
||||
kern_status_t status = handle_table_alloc_handle(
|
||||
task->t_handles,
|
||||
KERN_HANDLE_INVALID,
|
||||
&handle_data,
|
||||
out);
|
||||
if (status != KERN_OK) {
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user