tools/libs/guest: don't set errno to a negative value

Setting errno to a negative error value makes no sense.

Fixes: cb99a64029 ("libxc: arm: allow passing a device tree blob to the guest")
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 438e96ab47
master date: 2022-04-22 20:39:34 +0100
This commit is contained in:
Juergen Gross authored and Jan Beulich committed 2022-06-07 14:01:27 +02:00
1 parent ba62afdbc3
commit a2cf30eec0
1 file changed
+1 -1
+1 -1
View File
@@ -856,7 +856,7 @@ int xc_dom_devicetree_file(struct xc_dom_image *dom, const char *filename)
return -1;
return 0;
#else
errno = -EINVAL;
errno = EINVAL;
return -1;
#endif
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.