diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-02-11 04:09:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-02-11 04:09:49 +0000 |
commit | 52bd68882fddae6c33822fefc3c6aa8a12c72a13 (patch) | |
tree | c569d8ce36d45202ec05fc2b948f933988d541b7 /sys/uvm | |
parent | 91940b6f067ca478f0a95745960893cdec899a0a (diff) |
Can mask MAP_STACK by name rather than number
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_mmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c index 18c0590166b..8d581afef22 100644 --- a/sys/uvm/uvm_mmap.c +++ b/sys/uvm/uvm_mmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_mmap.c,v 1.145 2018/01/15 21:30:49 deraadt Exp $ */ +/* $OpenBSD: uvm_mmap.c,v 1.146 2018/02/11 04:09:48 deraadt Exp $ */ /* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */ /* @@ -375,7 +375,7 @@ sys_mmap(struct proc *p, void *v, register_t *retval) size = (vsize_t) SCARG(uap, len); prot = SCARG(uap, prot); flags = SCARG(uap, flags); - flags &= ~0x4000; /* XXX MAP_STACK coming in 2018 */ + flags &= ~MAP_STACK; /* XXX MAP_STACK coming in 2018 */ fd = SCARG(uap, fd); pos = SCARG(uap, pos); |