Commit 2419a159 authored by Juergen Gross's avatar Juergen Gross Committed by Andrew Cooper

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

Setting errno to a negative value makes no sense.

Fixes: e78e8b9b ("libxl: Add interface for querying hypervisor about PCI topology")
Signed-off-by: default avatarJuergen Gross <>
Acked-by: default avatarAndrew Cooper <>
parent 438e96ab
......@@ -288,7 +288,7 @@ int libxl__pci_topology_init(libxl__gc *gc,
if (i == num_devs) {
LOG(ERROR, "Too many devices");
errno = -ENOSPC;
errno = ENOSPC;
goto out;
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