From 095e1819289a6cfb46c86cdf7f02d56c29fa4a9c Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 17 Apr 2019 19:18:04 -0400 Subject: [PATCH] lib: Fix workqueue error function callback After exceeding the max retry number for a thread, we were passing the data rather than the work_queue_item struct. Signed-off-by: Stephen Worley --- lib/workqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/workqueue.c b/lib/workqueue.c index 066d81f350..54090d0d0f 100644 --- a/lib/workqueue.c +++ b/lib/workqueue.c @@ -280,7 +280,7 @@ int work_queue_run(struct thread *thread) if (item->ran > wq->spec.max_retries) { /* run error handler, if any */ if (wq->spec.errorfunc) - wq->spec.errorfunc(wq, item->data); + wq->spec.errorfunc(wq, item); work_queue_item_remove(wq, item); continue; } -- 2.39.5