Message ID | 20220810002735.2260172-2-ammar.faizi@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | liburing test fixes | expand |
diff --git a/test/cq-overflow.c b/test/cq-overflow.c index 0018081..312b414 100644 --- a/test/cq-overflow.c +++ b/test/cq-overflow.c @@ -33,14 +33,15 @@ static int test_io(const char *file, unsigned long usecs, unsigned *drops, int f fd = open(file, O_RDONLY | O_DIRECT); if (fd < 0) { perror("file open"); - goto err; + return 1; } memset(&p, 0, sizeof(p)); ret = io_uring_queue_init_params(ENTRIES, &ring, &p); if (ret) { + close(fd); fprintf(stderr, "ring create failed: %d\n", ret); - goto err; + return 1; } nodrop = 0; if (p.features & IORING_FEAT_NODROP)