summaryrefslogtreecommitdiff
path: root/mm/backing-dev.c
diff options
context:
space:
mode:
authorLiam Howlett <liam.howlett@oracle.com>2023-01-09 23:57:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-24 09:24:33 +0300
commit6447569f4fce2c759e701bd45ea72ff802e817a0 (patch)
tree3a08f8341c89b7823a193c0d6fad88ccf44f9d44 /mm/backing-dev.c
parent1442d51026c58e7c11dd5f9b19650632a48676d4 (diff)
downloadlinux-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