From 19adb3e6be0c60678b183859ec1f3849b92e6386 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Wed, 11 Nov 2020 16:27:36 -0500 Subject: [PATCH] mm/mmap: Fix unlock range un do_munmap Signed-off-by: Liam R. Howlett --- mm/mmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mmap.c b/mm/mmap.c index b781772f7181..ece9d20d6c80 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2808,7 +2808,7 @@ int __do_munmap(struct mm_struct *mm, unsigned long start, size_t len, * unlock any mlock()ed ranges before detaching vmas */ if (mm->locked_vm) - unlock_range(mm->mmap, end); + unlock_range(vma, end); /* Detach vmas from the MM linked list and remove from the mm tree*/ if (!detach_vmas_to_be_unmapped(mm, vma, prev, end)) -- 2.50.1