From 58f8da3300c9ffcd7f9b5773ce2a5b9110a4c207 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 Nov 2016 22:43:43 +0100 Subject: Fix boot startup * boot/boot.c (S_processor_set_tasks): Do not always return 0. --- boot/boot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'boot/boot.c') diff --git a/boot/boot.c b/boot/boot.c index 491c1a96..2fe1688e 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -1995,8 +1995,10 @@ S_processor_set_tasks(mach_port_t processor_set, size_t i; if (!task_ihash.nr_items) - *task_listCnt = 0; - return 0; + { + *task_listCnt = 0; + return 0; + } err = vm_allocate (mach_task_self (), (vm_address_t *) task_list, task_ihash.nr_items * sizeof **task_list, 1); -- cgit v1.2.3