Message ID | 20220810002735.2260172-4-ammar.faizi@intel.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | liburing test fixes | expand |
diff --git a/test/file-verify.c b/test/file-verify.c index 595dafd..b1a8fd4 100644 --- a/test/file-verify.c +++ b/test/file-verify.c @@ -347,13 +347,16 @@ static int test(struct io_uring *ring, const char *fname, int buffered, void *ptr; t_posix_memalign(&ptr, 4096, CHUNK_SIZE / nr_vecs); + memset(ptr, 0, CHUNK_SIZE / nr_vecs); vecs[j][i].iov_base = ptr; vecs[j][i].iov_len = CHUNK_SIZE / nr_vecs; } } } else { - for (j = 0; j < READ_BATCH; j++) + for (j = 0; j < READ_BATCH; j++) { t_posix_memalign(&buf[j], 4096, CHUNK_SIZE); + memset(buf[j], 0, CHUNK_SIZE); + } nr_vecs = 0; }