From: Jens Axboe Date: Wed, 20 May 2009 08:45:12 +0000 (+0200) Subject: Clear f on error get_next_file_rr() X-Git-Tag: fio-1.26.3~5 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=87c27b45f8d50720d7a9f12abc7e83d0a7463021;hp=9fd189697dbf9fb7878093be5e41f25b7f932c2d 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 --- 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;