diff options
author | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-28 21:20:20 +0000 |
---|---|---|
committer | Matthew Dempsky <matthew@cvs.openbsd.org> | 2014-06-28 21:20:20 +0000 |
commit | 14471dd5af148f3455eeba4a71eb2f0320ef72af (patch) | |
tree | adb10f0337d5c72170ccffb669314a3bbe6bc209 /sys/compat/linux | |
parent | ac5669634b8f5f930cca40049f2e1a300321ab51 (diff) |
Don't use meaningless MAP_TRYFIXED flag in compat_linux
Pointed out by deraadt
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 1792b23782f..48e6556c73a 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.89 2014/03/30 21:54:49 guenther Exp $ */ +/* $OpenBSD: linux_misc.c,v 1.90 2014/06/28 21:20:19 matthew Exp $ */ /* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */ /*- @@ -803,7 +803,7 @@ linux_to_bsd_mmap_args(cma, uap) struct sys_mmap_args *cma; const struct linux_sys_mmap2_args *uap; { - int flags = MAP_TRYFIXED, fl = SCARG(uap, flags); + int flags = 0, fl = SCARG(uap, flags); flags |= cvtto_bsd_mask(fl, LINUX_MAP_SHARED, MAP_SHARED); flags |= cvtto_bsd_mask(fl, LINUX_MAP_PRIVATE, MAP_PRIVATE); |