From fc3b51eaaee3bd4d38e9ec8a2383ca7adac518e4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 1 Jun 1994 21:22:57 +0000 Subject: Formerly lock-completed.c.~8~ --- libpager/lock-completed.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libpager/lock-completed.c b/libpager/lock-completed.c index bb8505b9..09159ef1 100644 --- a/libpager/lock-completed.c +++ b/libpager/lock-completed.c @@ -41,6 +41,7 @@ _pager_seqnos_memory_object_lock_completed (mach_port_t object, if (control != p->memobjcntl) { printf ("lock_completed: bad control port\n"); + ports_done_with_port (p); return EPERM; } @@ -57,8 +58,9 @@ _pager_seqnos_memory_object_lock_completed (mach_port_t object, if (lr) condition_broadcast (&p->wakeup); - _pager_release_seqno (p); + _pager_release_seqno (p, seqno); mutex_unlock (&p->interlock); + ports_done_with_port (p); return 0; } -- cgit v1.2.3