Failure to put job in add_job() failure case
authorJens Axboe <jens.axboe@oracle.com>
Thu, 15 Mar 2007 10:06:32 +0000 (11:06 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 15 Mar 2007 10:06:32 +0000 (11:06 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index b70ccaf8b7a68d13bffc0967490963ac775a7bf2..2fc7f0725091757bd80885356bb59c51739a0f27 100644 (file)
--- a/init.c
+++ b/init.c
@@ -355,7 +355,7 @@ static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
        td->io_ops = load_ioengine(td, engine);
        if (!td->io_ops) {
                log_err("fio: failed to load engine %s\n", engine);
        td->io_ops = load_ioengine(td, engine);
        if (!td->io_ops) {
                log_err("fio: failed to load engine %s\n", engine);
-               return 1;
+               goto err;
        }
 
        if (td->use_thread)
        }
 
        if (td->use_thread)