diff options
| author | 1998-07-05 20:49:12 +0000 | |
|---|---|---|
| committer | 1998-07-05 20:49:12 +0000 | |
| commit | a78fbf891749c59cd19f90d5447faac7c2a60c93 (patch) | |
| tree | d0318f616e64e7bbc1f1c61ec2e9fa2a63a41341 /sys/compat/linux/linux_misc.c | |
| parent | No need to call pwcheck() (and hence crypt()) if the user does not (diff) | |
| download | wireguard-openbsd-a78fbf891749c59cd19f90d5447faac7c2a60c93.tar.xz wireguard-openbsd-a78fbf891749c59cd19f90d5447faac7c2a60c93.zip | |
fix netbsd bug; from boquist@cs.chalmers.se
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -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); |
