Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- test/reg-wait.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/reg-wait.c b/test/reg-wait.c index 6cf47bf..c4e5863 100644 --- a/test/reg-wait.c +++ b/test/reg-wait.c @@ -234,8 +234,9 @@ static int test_try_register_region(struct io_uring_mem_region_reg *pr, ret = io_uring_queue_init(8, &ring, flags); if (ret) { - fprintf(stderr, "ring setup failed: %d\n", ret); - return 1; + if (ret != -EINVAL) + fprintf(stderr, "ring setup failed: %d\n", ret); + return ret; } ret = io_uring_register_region(&ring, pr); -- 2.46.0