diff options
author | Liam Howlett <liam.howlett@oracle.com> | 2023-01-09 23:57:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-24 09:24:33 +0300 |
commit | 6447569f4fce2c759e701bd45ea72ff802e817a0 (patch) | |
tree | 3a08f8341c89b7823a193c0d6fad88ccf44f9d44 /mm/backing-dev.c | |
parent | 1442d51026c58e7c11dd5f9b19650632a48676d4 (diff) | |
download | linux-6447569f4fce2c759e701bd45ea72ff802e817a0.tar.xz |
nommu: fix do_munmap() error path
commit 80be727ec87225797771a39f3e6801baf291faaf upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/backing-dev.c')
0 files changed, 0 insertions, 0 deletions