]> xenbits.xensource.com Git - xen.git/commit
libs/light: Propagate libxl__arch_domain_create() return code
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 21 Nov 2022 11:23:01 +0000 (12:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 21 Nov 2022 11:23:01 +0000 (12:23 +0100)
commit8cdfbf95b19c01fbb741c41d5ea5a94f8823964c
treefb9a52521ddcbe7c328f9fb40e80164a1860c832
parent57f07cca82521088cca0c1fc36d6ffd06cb7de80
libs/light: Propagate libxl__arch_domain_create() return code

Commit 34990446ca91 started to overwrite the `rc` value from
libxl__arch_domain_create(), thus error aren't propagated anymore.

Check `rc` value before doing the next thing.

Fixes: 34990446ca91 ("libxl: don't ignore the return value from xc_cpuid_apply_policy")
Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
tools/libs/light/libxl_dom.c