Fix the build after 47a57144

This commit is contained in:
Dmitry Chagin 2022-05-19 21:40:59 +03:00
parent a6f85b12bb
commit 89737eb829

View file

@ -2239,6 +2239,11 @@ linux_sched_getparam(struct thread *td,
return (error);
}
static const struct cpuset_copy_cb copy_set = {
.copyin = copyin,
.copyout = copyout
};
/*
* Get affinity of a process.
*/
@ -2257,7 +2262,7 @@ linux_sched_getaffinity(struct thread *td,
PROC_UNLOCK(tdt->td_proc);
error = kern_cpuset_getaffinity(td, CPU_LEVEL_WHICH, CPU_WHICH_TID,
tid, args->len, (cpuset_t *)args->user_mask_ptr);
tid, args->len, (cpuset_t *)args->user_mask_ptr, &copy_set);
if (error == ERANGE)
error = EINVAL;
if (error == 0)