X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..cb3231590a3c94ab4375e2228bd5e86b0cf1ad7e:/osfmk/kern/ux_handler.c diff --git a/osfmk/kern/ux_handler.c b/osfmk/kern/ux_handler.c index a20237379..0329eeea6 100644 --- a/osfmk/kern/ux_handler.c +++ b/osfmk/kern/ux_handler.c @@ -68,13 +68,8 @@ SECURITY_READ_ONLY_LATE(ipc_port_t) ux_handler_port = IP_NULL; void ux_handler_init(void) { - ux_handler_port = ipc_port_alloc_kernel(); - - if (ux_handler_port == IP_NULL) { - panic("can't allocate unix exception port"); - } - - ipc_kobject_set(ux_handler_port, (ipc_kobject_t)&ux_handler_kobject, IKOT_UX_HANDLER); + ux_handler_port = ipc_kobject_alloc_port((ipc_kobject_t)&ux_handler_kobject, + IKOT_UX_HANDLER, IPC_KOBJECT_ALLOC_NONE); } /*