mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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:438e96ab47master date: 2022-04-22 20:39:34 +0100
This commit is contained in:
1 parent
ba62afdbc3
commit
a2cf30eec0
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||