From: Jens Axboe Date: Fri, 29 Jul 2016 15:59:38 +0000 (-0600) Subject: backend: do_dry_run(): get_io_u() can return an error pointer X-Git-Tag: fio-2.14~69 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=99955d3d3e290ccb06583a821a8112210e4b332d backend: do_dry_run(): get_io_u() can return an error pointer Don't just check for NULL. Signed-off-by: Jens Axboe --- diff --git a/backend.c b/backend.c index 2f290d2d..8a71490e 100644 --- a/backend.c +++ b/backend.c @@ -1399,7 +1399,7 @@ static uint64_t do_dry_run(struct thread_data *td) break; io_u = get_io_u(td); - if (!io_u) + if (IS_ERR_OR_NULL(io_u)) break; io_u_set(io_u, IO_U_F_FLIGHT);