summaryrefslogtreecommitdiff
path: root/ipc/mach_port.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/mach_port.c')
-rw-r--r--ipc/mach_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mach_port.c b/ipc/mach_port.c
index 750f12a..63c25dc 100644
--- a/ipc/mach_port.c
+++ b/ipc/mach_port.c
@@ -1287,7 +1287,7 @@ mach_port_insert_right(
!MACH_MSG_TYPE_PORT_ANY_RIGHT(polyPoly))
return KERN_INVALID_VALUE;
- if (!IO_VALID(poly))
+ if (!IO_VALID((ipc_object_t)poly))
return KERN_INVALID_CAPABILITY;
return ipc_object_copyout_name(space, poly, polyPoly, FALSE, name);