mirror of
https://github.com/darlinghq/darling.git
synced 2024-12-04 18:46:23 +00:00
Fix mach_port_allocate()
This commit is contained in:
parent
6da6cb1102
commit
1dda3fd5ac
@ -296,17 +296,11 @@ kern_return_t _kernelrpc_mach_port_allocate_trap_impl(
|
||||
struct mach_port_allocate_args args = {
|
||||
.task_right_name = target,
|
||||
.right_type = right,
|
||||
.out_right_name = 0
|
||||
.out_right_name = name
|
||||
};
|
||||
|
||||
ret = ioctl(driver_fd, NR__kernelrpc_mach_port_allocate,
|
||||
&args);
|
||||
|
||||
if (ret == KERN_SUCCESS)
|
||||
*name = args.out_right_name;
|
||||
else
|
||||
*name = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
2
src/lkm
2
src/lkm
@ -1 +1 @@
|
||||
Subproject commit eaed59efe4280cfc88376cfa3616223ae43cce9b
|
||||
Subproject commit 5a5b433f109933a584328ba2c161906f4165be8a
|
Loading…
Reference in New Issue
Block a user