]> xenbits.xensource.com Git - xen.git/commit
xl: move freemem()'s "credit expired" loop exit
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Jul 2022 15:48:18 +0000 (17:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jul 2022 15:48:18 +0000 (17:48 +0200)
commitd8f8cb8bdd02fad3b6986ae93511f750fa7f7e6a
tree326b62f96e07c1152694879958b73dae69459cb2
parent3db29e8fac3f874aba0198f398e8eeaad9a091b8
xl: move freemem()'s "credit expired" loop exit

Move the "credit expired" loop exit to the middle of the loop,
immediately after "return true". This way having reached the goal on the
last iteration would be reported as success to the caller, rather than
as "timed out".

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
tools/xl/xl_vmcontrol.c