[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] x86/mm: Simplify promote_l4_table()'s exit semantics
commit 704fa1532801bc02c4500462f0b913b3c137db4d Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Tue Oct 9 13:48:57 2018 +0100 Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CommitDate: Tue Dec 17 20:40:57 2019 +0000 x86/mm: Simplify promote_l4_table()'s exit semantics promote_l4_table() is different from its lower level helpers, by having an extra return path out of the middle of the loop in the case of a failure. Break from the loop, which is consistent with the other helpers, and functionally equivalent. Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Reviewed-by: George Dunlap <george.dunlap@xxxxxxxxxx> --- xen/arch/x86/mm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index c14c677a62..594f1bd290 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -1856,10 +1856,7 @@ static int promote_l4_table(struct page_info *page) } } if ( rc < 0 ) - { - unmap_domain_page(pl4e); - return rc; - } + break; pl4e[i] = adjust_guest_l4e(l4e, d); } -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |