aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2022-05-19 18:40:59 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2022-05-19 18:40:59 +0000
commit89737eb8290a10d96b77afac1b68e4740b43353b (patch)
tree6de15d91658bf487ab4383c581ca8f714731ec59
parenta6f85b12bbe8e50243350c77b0c5879d9e72f85b (diff)
downloadsrc-89737eb8290a10d96b77afac1b68e4740b43353b.tar.gz
src-89737eb8290a10d96b77afac1b68e4740b43353b.zip
Fix the build after 47a57144
-rw-r--r--sys/compat/linux/linux_misc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index d8687945b0e8..652a9b4b5067 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -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)