summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Penyaev <rpenyaev@suse.de>2019-05-27 21:05:08 +0200
committerJens Axboe <axboe@kernel.dk>2019-05-27 14:54:12 -0600
commitd1432b199a541f3ef2e49778fc05a5f5e251a96d (patch)
tree06d0a4b04dc207d4dd4cd119f63e7e88a4e8e403
parent8e655622d4253e16fbf67e8da80096479bb6cc23 (diff)
setup: return -errno explicitly from io_uring_queue_init()
Signed-off-by: Roman Penyaev <rpenyaev@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
-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)