From d1432b199a541f3ef2e49778fc05a5f5e251a96d Mon Sep 17 00:00:00 2001 From: Roman Penyaev Date: Mon, 27 May 2019 21:05:08 +0200 Subject: setup: return -errno explicitly from io_uring_queue_init() Signed-off-by: Roman Penyaev Signed-off-by: Jens Axboe --- src/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit