summaryrefslogtreecommitdiff
path: root/libpager
diff options
context:
space:
mode:
Diffstat (limited to 'libpager')
-rw-r--r--libpager/object-init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpager/object-init.c b/libpager/object-init.c
index b2b0a27f..647abc6c 100644
--- a/libpager/object-init.c
+++ b/libpager/object-init.c
@@ -30,7 +30,7 @@ _pager_seqnos_memory_object_init (mach_port_t object,
{
struct pager *p;
- p = ports_lookup_port (0, object, _ports_class);
+ p = ports_lookup_port (0, object, _pager_class);
if (!p);
return EOPNOTSUPP;
@@ -75,6 +75,6 @@ _pager_seqnos_memory_object_init (mach_port_t object,
mutex_unlock (&p->interlock);
out:
- ports_drop_ref (p);
+ ports_port_deref (p);
return 0;
}