diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1998-07-05 20:49:13 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1998-07-05 20:49:13 +0000 |
commit | 61db3cc2c59b8a65075d56d23e1bb07b3e0051dd (patch) | |
tree | 907b5f7d874714f2dc240d0fc6c6bf6ffc3b0284 /sys/compat | |
parent | 3e5956aeb8a6dcec4d42d507c8716a3646771a77 (diff) |
fix netbsd bug; from boquist@cs.chalmers.se
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 54ad6398f5a..0c55ea08585 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.17 1998/07/04 08:59:08 deraadt Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.18 1998/07/05 20:49:12 downsj Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /* @@ -542,8 +542,7 @@ linux_sys_mremap(p, v, retval) * Shrinking mapped region. */ if (new_size < old_size) { - SCARG(&mua, addr) = (caddr_t)SCARG(uap, old_address) + - SCARG(uap, new_size); + SCARG(&mua, addr) = (caddr_t)SCARG(uap, old_address) + new_size; SCARG(&mua, len) = old_size - new_size; error = sys_munmap(p, &mua, retval); *retval = error ? 0 : (register_t)SCARG(uap, old_address); |