summaryrefslogtreecommitdiff
path: root/sys/compat/linux
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/linux')
-rw-r--r--sys/compat/linux/linux_file.c4
-rw-r--r--sys/compat/linux/linux_misc.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/linux/linux_file.c b/sys/compat/linux/linux_file.c
index b1c5e12745a..7f1ae5c2a5d 100644
--- a/sys/compat/linux/linux_file.c
+++ b/sys/compat/linux/linux_file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_file.c,v 1.14 2000/07/23 22:24:37 jasoni Exp $ */
+/* $OpenBSD: linux_file.c,v 1.15 2000/09/07 17:52:23 ericj Exp $ */
/* $NetBSD: linux_file.c,v 1.15 1996/05/20 01:59:09 fvdl Exp $ */
/*
@@ -519,9 +519,9 @@ linux_stat1(p, v, retval, dolstat)
sg = stackgap_init(p->p_emul);
+ st = stackgap_alloc(&sg, sizeof (struct stat));
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
- st = stackgap_alloc(&sg, sizeof (struct stat));
SCARG(&sa, ub) = st;
SCARG(&sa, path) = SCARG(uap, path);
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index fe78c9fe6dd..c2ff17cdd62 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.31 2000/07/23 22:35:38 jasoni Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.32 2000/09/07 17:52:24 ericj Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*
@@ -859,6 +859,7 @@ linux_sys_utime(p, v, retval)
struct linux_utimbuf lut;
sg = stackgap_init(p->p_emul);
+ tvp = (struct timeval *) stackgap_alloc(&sg, sizeof(tv));
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
SCARG(&ua, path) = SCARG(uap, path);
@@ -869,7 +870,6 @@ linux_sys_utime(p, v, retval)
tv[0].tv_usec = tv[1].tv_usec = 0;
tv[0].tv_sec = lut.l_actime;
tv[1].tv_sec = lut.l_modtime;
- tvp = (struct timeval *) stackgap_alloc(&sg, sizeof(tv));
if ((error = copyout(tv, tvp, sizeof tv)))
return error;
SCARG(&ua, tptr) = tvp;