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 <>
Acked-by: default avatarAndrew Cooper <>
parent a0fb7e0e
......@@ -855,7 +855,7 @@ int xc_dom_devicetree_file(struct xc_dom_image *dom, const char *filename)
return -1;
return 0;
errno = -EINVAL;
errno = EINVAL;
return -1;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment