aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/mpx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/mm/mpx.c')
-rw-r--r--arch/x86/mm/mpx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/mm/mpx.c b/arch/x86/mm/mpx.c
index aad4ac386f98..c98079684bdb 100644
--- a/arch/x86/mm/mpx.c
+++ b/arch/x86/mm/mpx.c
@@ -51,7 +51,7 @@ static unsigned long mpx_mmap(unsigned long len)
51 51
52 down_write(&mm->mmap_sem); 52 down_write(&mm->mmap_sem);
53 addr = do_mmap(NULL, 0, len, PROT_READ | PROT_WRITE, 53 addr = do_mmap(NULL, 0, len, PROT_READ | PROT_WRITE,
54 MAP_ANONYMOUS | MAP_PRIVATE, VM_MPX, 0, &populate); 54 MAP_ANONYMOUS | MAP_PRIVATE, VM_MPX, 0, &populate, NULL);
55 up_write(&mm->mmap_sem); 55 up_write(&mm->mmap_sem);
56 if (populate) 56 if (populate)
57 mm_populate(addr, populate); 57 mm_populate(addr, populate);
@@ -893,7 +893,7 @@ static int unmap_entire_bt(struct mm_struct *mm,
893 * avoid recursion, do_munmap() will check whether it comes 893 * avoid recursion, do_munmap() will check whether it comes
894 * from one bounds table through VM_MPX flag. 894 * from one bounds table through VM_MPX flag.
895 */ 895 */
896 return do_munmap(mm, bt_addr, mpx_bt_size_bytes(mm)); 896 return do_munmap(mm, bt_addr, mpx_bt_size_bytes(mm), NULL);
897} 897}
898 898
899static int try_unmap_single_bt(struct mm_struct *mm, 899static int try_unmap_single_bt(struct mm_struct *mm,