proc: don't throw from proc_get_set()
[akaros.git] / kern / src / process.c
index 4531acb..e11132a 100644 (file)
@@ -2447,8 +2447,6 @@ void proc_get_set(struct process_set *pset)
                pset->num_processes = 0;
                pset->procs = (struct proc **)
                        kzmalloc(pset->size * sizeof(struct proc *), MEM_WAIT);
-               if (!pset->procs)
-                       error(-ENOMEM, ERROR_FIXME);
 
                spin_lock(&pid_hash_lock);
                hash_for_each(pid_hash, enum_proc, pset);