]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Fix potential leak on do_mas_align_munmap() maple_mm_stable_lowmem
authorLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 13 May 2022 14:13:22 +0000 (10:13 -0400)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Fri, 13 May 2022 14:43:31 +0000 (10:43 -0400)
commit8798c6f9e02b084763b7948224bbca06f16a30fe
tree779931360b86e953d53f5b837553f46c5dc55e82
parent1d05aa19422a907949a5f7e46b06998f181075e1
mm/mmap: Fix potential leak on do_mas_align_munmap()

There is a leak when the system is low on resources and fails to
allocate enough memory to complete the munmap task.  Fix this by adding
the necessary free operations in the unwinding.

Fixes: a760774e7b7b (mm: start tracking VMAs with maple tree)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
mm/mmap.c