Skip to content

Commit 5845093

Browse files
donettom-1maddy-kerneldev
authored andcommitted
book3s64/radix : Handle error conditions properly in radix_vmemmap_populate
Error conditions are not handled properly if altmap is not present and PMD_SIZE vmemmap_alloc_block_buf fails. In this patch, if vmemmap_alloc_block_buf fails in the non-altmap case, we will fall back to the base mapping. Reviewed-by: Ritesh Harjani (IBM) <[email protected]> Signed-off-by: Donet Tom <[email protected]> Signed-off-by: Madhavan Srinivasan <[email protected]> Link: https://patch.msgid.link/7f95fe91c827a2fb76367a58dbea724e811fb152.1750593372.git.donettom@linux.ibm.com
1 parent 41a1452 commit 5845093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/book3s64/radix_pgtable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ int __meminit radix__vmemmap_populate(unsigned long start, unsigned long end, in
11731173
vmemmap_set_pmd(pmd, p, node, addr, next);
11741174
pr_debug("PMD_SIZE vmemmap mapping\n");
11751175
continue;
1176-
} else if (altmap) {
1176+
} else {
11771177
/*
11781178
* A vmemmap block allocation can fail due to
11791179
* alignment requirements and we trying to align

0 commit comments

Comments
 (0)