summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-03-13 08:19:42 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-03-13 08:19:42 +0000
commit25e1725beee50616d287b9c58dad92d69c7c0832 (patch)
treebac43ae53b386499ceda0dcf1882f63b45f6c154
parent713335737d8cd1d81a6260718657a68b032e8a31 (diff)
Fix copyout bug in LINUX_IPC_SET. Thanks to Dawson Engler & team at Stanford.
-rw-r--r--sys/compat/linux/linux_ipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c
index 9e184933001..49d9e4516aa 100644
--- a/sys/compat/linux/linux_ipc.c
+++ b/sys/compat/linux/linux_ipc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_ipc.c,v 1.5 2000/07/23 22:35:38 jasoni Exp $ */
+/* $OpenBSD: linux_ipc.c,v 1.6 2001/03/13 08:19:41 csapuntz Exp $ */
/* $NetBSD: linux_ipc.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */
/*
@@ -686,7 +686,7 @@ linux_shmctl(p, uap, retval)
linux_to_bsd_shmid_ds(&lseg, &bs);
sg = stackgap_init(p->p_emul);
bsp = stackgap_alloc(&sg, sizeof (struct shmid_ds));
- if ((error = copyout((caddr_t) bsp, (caddr_t) &bs, sizeof bs)))
+ if ((error = copyout((caddr_t) &bs, (caddr_t) bsp, sizeof bs)))
return error;
SCARG(&bsa, shmid) = SCARG(uap, a1);
SCARG(&bsa, cmd) = IPC_SET;