diff options
author | 1995-11-19 13:48:28 +0000 | |
---|---|---|
committer | 1995-11-19 13:48:28 +0000 | |
commit | 4c3d4013d35faa1e2fe536ad5be713fc5f0c2657 (patch) | |
tree | a660d98482c5fb1e74aabd49d1aae357c0bae573 | |
parent | from netbsd; Oops, this also belongs to the ser02 selection (diff) | |
download | wireguard-openbsd-4c3d4013d35faa1e2fe536ad5be713fc5f0c2657.tar.xz wireguard-openbsd-4c3d4013d35faa1e2fe536ad5be713fc5f0c2657.zip |
from netbsd; Fix transposed copyin() args, from Niklas Hallqvist <niklas@appli.se>.
-rw-r--r-- | sys/compat/linux/linux_ioctl.c | 4 |
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); /* |