kernel: msg: implement asynchronous event messages
This commit is contained in:
@@ -60,9 +60,9 @@ kern_status_t sys_port_create(kern_handle_t *out)
|
||||
kern_status_t status
|
||||
= task_open_handle(self, &port->p_base, 0, &handle);
|
||||
task_unlock_irqrestore(self, irq_flags);
|
||||
object_unref(&port->p_base);
|
||||
|
||||
if (status != KERN_OK) {
|
||||
object_unref(&port->p_base);
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -114,6 +114,7 @@ kern_status_t sys_port_connect(
|
||||
status = port_connect(port, remote);
|
||||
port_unlock_irqrestore(port, flags);
|
||||
object_unref(&remote->c_base);
|
||||
object_unref(port_obj);
|
||||
|
||||
return KERN_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user