diff options
| author | 2014-06-28 21:20:19 +0000 | |
|---|---|---|
| committer | 2014-06-28 21:20:19 +0000 | |
| commit | 97e9832b60432255019a85de76ee1f605b9ebb8d (patch) | |
| tree | 29b5ef2bcf42ede37f05b985869969c2ab413645 /sys/compat/linux/linux_misc.c | |
| parent | sync (diff) | |
| download | wireguard-openbsd-97e9832b60432255019a85de76ee1f605b9ebb8d.tar.xz wireguard-openbsd-97e9832b60432255019a85de76ee1f605b9ebb8d.zip | |
Don't use meaningless MAP_TRYFIXED flag in compat_linux
Pointed out by deraadt
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -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); |
