aboutsummaryrefslogtreecommitdiff
path: root/libports/interrupt-operation.c
diff options
context:
space:
mode:
Diffstat (limited to 'libports/interrupt-operation.c')
-rw-r--r--libports/interrupt-operation.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libports/interrupt-operation.c b/libports/interrupt-operation.c
index 19c0edf6..943bd4f4 100644
--- a/libports/interrupt-operation.c
+++ b/libports/interrupt-operation.c
@@ -24,10 +24,9 @@
/* Cause a pending request on this object to immediately return. The
exact semantics are dependent on the specific object. */
kern_return_t
-ports_S_interrupt_operation (mach_port_t port,
+ports_S_interrupt_operation (struct port_info *pi,
mach_port_seqno_t seqno)
{
- struct port_info *pi = ports_lookup_port (0, port, 0);
if (!pi)
return EOPNOTSUPP;
pthread_mutex_lock (&_ports_lock);
@@ -35,6 +34,5 @@ ports_S_interrupt_operation (mach_port_t port,
pi->cancel_threshold = seqno;
pthread_mutex_unlock (&_ports_lock);
ports_interrupt_rpcs (pi);
- ports_port_deref (pi);
return 0;
}