summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c
index a26871b..aa4deef 100644
--- a/sys/compat/linux/linux_ipc.c
+++ b/sys/compat/linux/linux_ipc.c
@@ -227,7 +227,7 @@ linux_semctl(struct thread *td, struct linux_semctl_args *args)
/* Make sure the arg parameter can be copied in. */
unptr = stackgap_alloc(&sg, sizeof(union semun));
- bcopy(unptr, &args->arg, sizeof(union semun));
+ bcopy(&args->arg, unptr, sizeof(union semun));
bsd_args.semid = args->semid;
bsd_args.semnum = args->semnum;
OpenPOWER on IntegriCloud