Liam Howlett 80be727ec8 nommu: fix do_munmap() error path
When removing a VMA from the tree fails due to no memory, do not free the
VMA since a reference still exists.

Link: https://lkml.kernel.org/r/20230109205708.956103-1-Liam.Howlett@oracle.com
Fixes: 8220543df148 ("nommu: remove uses of VMA linked list")
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Yu Zhao <yuzhao@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-01-11 16:14:22 -08:00
..
2022-12-14 12:20:00 -08:00
2022-12-21 14:31:52 -08:00
2021-05-05 11:27:24 -07:00
2022-12-17 14:06:53 -06:00
2022-12-15 11:12:21 -08:00
2022-09-26 19:46:16 -07:00
2022-12-17 14:06:53 -06:00
2022-11-27 23:38:02 +01:00
2022-12-11 18:12:08 -08:00
2022-12-13 19:29:45 -08:00
2022-10-03 14:02:43 -07:00
2022-09-26 19:46:09 -07:00
2022-12-17 14:06:53 -06:00
2023-01-11 16:14:22 -08:00
2021-05-07 00:26:35 -07:00
2022-12-14 12:20:00 -08:00
2022-12-13 19:29:45 -08:00
2022-12-13 19:29:45 -08:00
2022-12-17 14:06:53 -06:00
2022-12-17 14:06:53 -06:00
2022-12-11 18:12:10 -08:00
2022-12-11 18:12:10 -08:00
2022-12-11 18:12:10 -08:00