summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/exec.c b/exec/exec.c
index 040f3ed1..451cd606 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1196,10 +1196,10 @@ do_exec (file_t file,
ports_replaced[idx] = 1;
}
- boot = ports_allocate_port (port_bucket, sizeof *boot, execboot_portclass);
+ e.error = ports_create_port (port_bucket, sizeof *boot,
+ execboot_portclass, &boot);
if (boot == NULL)
{
- e.error = ENOMEM;
stdout:
rwlock_reader_unlock (&std_lock);
goto out;