From 1dda3fd5aca9b3a4e23266da83f34278265c0ce5 Mon Sep 17 00:00:00 2001 From: Lubos Dolezel Date: Fri, 7 Apr 2017 12:00:00 +0200 Subject: [PATCH] Fix mach_port_allocate() --- src/kernel/mach_server/client/mach_traps.c | 8 +------- src/lkm | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/kernel/mach_server/client/mach_traps.c b/src/kernel/mach_server/client/mach_traps.c index a5acdd2e0..afc8f4a0c 100644 --- a/src/kernel/mach_server/client/mach_traps.c +++ b/src/kernel/mach_server/client/mach_traps.c @@ -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; } diff --git a/src/lkm b/src/lkm index eaed59efe..5a5b433f1 160000 --- a/src/lkm +++ b/src/lkm @@ -1 +1 @@ -Subproject commit eaed59efe4280cfc88376cfa3616223ae43cce9b +Subproject commit 5a5b433f109933a584328ba2c161906f4165be8a