diff options
| author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-04-17 19:18:04 -0400 |
|---|---|---|
| committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-04-17 19:29:05 -0400 |
| commit | 095e1819289a6cfb46c86cdf7f02d56c29fa4a9c (patch) | |
| tree | 26b97997349c557a0d85e8dc1d1604c37231617f | |
| parent | 3c7940063b40250354cccc6b582a81d10a5a4261 (diff) | |
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 <sworley@cumulusnetworks.com>
| -rw-r--r-- | lib/workqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
