Fix transposed copyin() args, from Niklas Hallqvist <niklas@appli.se>.

This commit is contained in:
thorpej 1995-11-16 18:42:05 +00:00
parent a67e5e52e2
commit b2f1fb085b
2 changed files with 4 additions and 4 deletions

View File

@ -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);
/*

View File

@ -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);
/*