]> xenbits.xensource.com Git - xen.git/commit
tools/libs/ctrl: don't set errno to a negative value
authorJuergen Gross <jgross@suse.com>
Wed, 20 Apr 2022 07:31:17 +0000 (09:31 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 22 Apr 2022 19:39:34 +0000 (20:39 +0100)
commita0fb7e0e73483ed042d5ca34861a891a51ad337b
tree9247fd6c3ed16fc226ddad3e4bbf3e2c421afac3
parent60245b71c1cd001686fa7b7a26869cbcb80d074c
tools/libs/ctrl: don't set errno to a negative value

The claimed reason for setting errno to -1 is wrong. On x86
xc_domain_pod_target() will set errno to a sane value in the error
case.

Fixes: ff1745d5882b ("tools: libxl: do not set the PoD target on ARM")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/libs/ctrl/xc_domain.c