Skip to content

Commit db1d915

Browse files
howletttorvalds
authored andcommitted
mm/nommu: unexport do_munmap()
do_munmap() does not take the mmap_write_lock(). vm_munmap() should be used instead. Link: https://lkml.kernel.org/r/20210604194002.648037-1-Liam.Howlett@Oracle.com Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 176056f commit db1d915

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

mm/nommu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,6 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len, struct list
15011501
delete_vma(mm, vma);
15021502
return 0;
15031503
}
1504-
EXPORT_SYMBOL(do_munmap);
15051504

15061505
int vm_munmap(unsigned long addr, size_t len)
15071506
{

0 commit comments

Comments
 (0)