summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup.c b/src/setup.c
index 8def8c9..73f35de 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -88,7 +88,7 @@ int io_uring_queue_init(unsigned entries, struct io_uring *ring, unsigned flags)
fd = io_uring_setup(entries, &p);
if (fd < 0)
- return fd;
+ return -errno;
ret = io_uring_queue_mmap(fd, &p, ring);
if (ret)