]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap: Fix mmap_region() maple tree store.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 17 Feb 2021 22:03:35 +0000 (17:03 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 17 Feb 2021 22:03:35 +0000 (17:03 -0500)
commit3501edea1bee71b323c6e4d2443e1faa37641da7
treeb74035a1bbadd7926333afdc685f605d17dd4370
parent640bdefa7bfaf43f3d0321c320dbc4b7ed8a57e7
mm/mmap: Fix mmap_region() maple tree store.

mas_set_range() before vma_mas_link() as the address may have changed
as commented above in the code.

Do the same in the error path.

This forces a reset of the mas->node to MA_START.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
mm/mmap.c