From 61db3cc2c59b8a65075d56d23e1bb07b3e0051dd Mon Sep 17 00:00:00 2001 From: Jason Downs Date: Sun, 5 Jul 1998 20:49:13 +0000 Subject: fix netbsd bug; from boquist@cs.chalmers.se --- sys/compat/linux/linux_misc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/compat/linux') 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); -- cgit v1.2.3