xl: move freemem()'s "credit expired" loop exit
authorJan Beulich <jbeulich@suse.com>
Wed, 27 Jul 2022 07:20:06 +0000 (09:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 27 Jul 2022 07:20:06 +0000 (09:20 +0200)
commitbfbcae445cd118cee6d0aa25c15f9eb7f8baa353
treeae64df00ad10a4329ec625fb43b60d30d06de341
parent6e542a835de8554eae716e17cc565a2f7e217b39
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>
master commit: d8f8cb8bdd02fad3b6986ae93511f750fa7f7e6a
master date: 2022-07-18 17:48:18 +0200
tools/xl/xl_vmcontrol.c