From 87c27b45f8d50720d7a9f12abc7e83d0a7463021 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 20 May 2009 10:45:12 +0200 Subject: [PATCH] Clear f on error get_next_file_rr() Otherwise we could return an invalid non-open file and trigger and assertion failure later in the process. Signed-off-by: Jens Axboe --- io_u.c | 1 + 1 file changed, 1 insertion(+) diff --git a/io_u.c b/io_u.c index fc49bd32..1e9018c4 100644 --- a/io_u.c +++ b/io_u.c @@ -686,6 +686,7 @@ static struct fio_file *get_next_file_rr(struct thread_data *td, int goodf, if (err) { dprint(FD_FILE, "error %d on open of %s\n", err, f->file_name); + f = NULL; continue; } opened = 1; -- 2.25.1