From 99955d3d3e290ccb06583a821a8112210e4b332d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 29 Jul 2016 09:59:38 -0600 Subject: [PATCH] backend: do_dry_run(): get_io_u() can return an error pointer Don't just check for NULL. Signed-off-by: Jens Axboe --- backend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1