commit | 87c27b45f8d50720d7a9f12abc7e83d0a7463021 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed May 20 10:45:12 2009 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed May 20 10:45:12 2009 +0200 |
tree | f15dc23deffbd007b6a37e73f1033596de153bab | |
parent | 9fd189697dbf9fb7878093be5e41f25b7f932c2d [diff] [blame] |
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 <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c index fc49bd3..1e9018c 100644 --- a/io_u.c +++ b/io_u.c
@@ -686,6 +686,7 @@ if (err) { dprint(FD_FILE, "error %d on open of %s\n", err, f->file_name); + f = NULL; continue; } opened = 1;