about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2018-07-12 15:01:43 +0200
committerFlorian Weimer <fweimer@redhat.com>2018-07-12 15:01:43 +0200
commit046bfed9dec0d24e7b217bb78e15d1640d572832 (patch)
tree116a65ecf4c9de78d671a1aaf8ebd2a8dd829f4c /nptl
parent93304f5f7a32f73b551266c5a181db51d97a71e4 (diff)
downloadglibc-046bfed9dec0d24e7b217bb78e15d1640d572832.tar.gz
glibc-046bfed9dec0d24e7b217bb78e15d1640d572832.tar.xz
glibc-046bfed9dec0d24e7b217bb78e15d1640d572832.zip
nptl: Use __mprotect consistently for _STACK_GROWS_UP
Diffstat (limited to 'nptl')
-rw-r--r--nptl/allocatestack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/allocatestack.c b/nptl/allocatestack.c
index f9e053f9e5..04e3f08465 100644
--- a/nptl/allocatestack.c
+++ b/nptl/allocatestack.c
@@ -728,7 +728,7 @@ allocate_stack (const struct pthread_attr *attr, struct pthread **pdp,
          /* The guard size difference might be > 0, but once rounded
             to the nearest page the size difference might be zero.  */
          if (new_guard > old_guard
-             && mprotect (old_guard, new_guard - old_guard, prot) != 0)
+             && __mprotect (old_guard, new_guard - old_guard, prot) != 0)
 	    goto mprot_error;
 #endif