From b2f1fb085b31e67a1acac6b430af41c60627c091 Mon Sep 17 00:00:00 2001 From: thorpej Date: Thu, 16 Nov 1995 18:42:05 +0000 Subject: [PATCH] Fix transposed copyin() args, from Niklas Hallqvist . --- sys/compat/linux/common/linux_ioctl.c | 4 ++-- sys/compat/linux/linux_ioctl.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/compat/linux/common/linux_ioctl.c b/sys/compat/linux/common/linux_ioctl.c index 159674025458..7f8aa9d02efe 100644 --- a/sys/compat/linux/common/linux_ioctl.c +++ b/sys/compat/linux/common/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.9 1995/11/16 18:42:05 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); /* diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 159674025458..7f8aa9d02efe 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.9 1995/11/16 18:42:05 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); /*