Commit 438e96ab authored by Juergen Gross's avatar Juergen Gross Committed by Andrew Cooper

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

Setting errno to a negative error value makes no sense.

Fixes: cb99a640 ("libxc: arm: allow passing a device tree blob to the guest")
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Acked-by: default avatarAndrew Cooper <andrew.cooper3@citrix.com>
parent a0fb7e0e
......@@ -855,7 +855,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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment