ip_lock(port);
assert(ip_kotype(port) == IKOT_SUID_CRED);
- sc = (suid_cred_t)port->ip_kobject;
+ sc = (suid_cred_t)ipc_kobject_get(port);
ipc_kobject_set_atomically(port, IKO_NULL, IKOT_NONE);
ip_unlock(port);
}
if (!ipc_kobject_make_send_lazy_alloc_port(&sc->port,
- (ipc_kobject_t) sc, IKOT_SUID_CRED, false, 0)) {
+ (ipc_kobject_t) sc, IKOT_SUID_CRED, IPC_KOBJECT_ALLOC_NONE, false, 0)) {
suid_cred_free(sc);
return IP_NULL;
}
return -1;
}
- sc = (suid_cred_t)port->ip_kobject;
+ sc = (suid_cred_t)ipc_kobject_get(port);
if (vnode != sc->vnode) {
ip_unlock(port);