summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-19 13:48:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-19 13:48:29 +0000
commit4acec40b5f6fc2530509c8046936e39b6302bb19 (patch)
treec4fc4935b74563c5d459c9df882030924b7e0c5d /sys/compat/linux
parent2bb1a0429aba76e206c2fa47b05470a1bf4d3ba7 (diff)
from netbsd; Fix transposed copyin() args, from Niklas Hallqvist <niklas@appli.se>.
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c
index 15967402545..c469b6a7034 100644
--- a/sys/compat/linux/linux_ioctl.c
+++ b/sys/compat/linux/linux_ioctl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ioctl.c,v 1.8 1995/10/07 06:27:07 mycroft Exp $ */
+/* $NetBSD: linux_ioctl.c,v 1.8.2.1 1995/11/16 18:45:18 thorpej Exp $ */
/*
* Copyright (c) 1995 Frank van der Linden
@@ -540,7 +540,7 @@ linux_sys_ioctl(p, v, retval)
SCARG(&ia, com) = TIOCSETAF;
break;
}
- if ((error = copyin(&tmplt, data, sizeof tmplt)))
+ if ((error = copyin(data, &tmplt, sizeof tmplt)))
return error;
abts = stackgap_alloc(&sg, sizeof tmpbts);
/*