summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpager/pager-create.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpager/pager-create.c b/libpager/pager-create.c
index f4bdb8bf..f430cf87 100644
--- a/libpager/pager-create.c
+++ b/libpager/pager-create.c
@@ -26,7 +26,9 @@ pager_create (struct user_pager_info *upi,
{
struct pager *p;
- p = ports_allocate_port (bucket, sizeof (struct pager), _pager_class);
+ errno = ports_create_port (_pager_class, bucket, sizeof (struct pager), &p);
+ if (errno)
+ return 0;
p->upi = upi;
p->pager_state = NOTINIT;