diff --git a/src/platforms/posix/work_queue/hrt_thread.c b/src/platforms/posix/work_queue/hrt_thread.c index 9ac14e4b2d..08de42a730 100644 --- a/src/platforms/posix/work_queue/hrt_thread.c +++ b/src/platforms/posix/work_queue/hrt_thread.c @@ -143,7 +143,7 @@ static void hrt_work_process() if (elapsed >= work->delay) { /* Remove the ready-to-execute work from the list */ - (void)dq_rem((struct dq_entry_s *)work, &wqueue->q); + (void)dq_rem((struct dq_entry_s *)&(work->dq), &(wqueue->q)); //PX4_INFO("Dequeued work=%p", work); /* Extract the work description from the entry (in case the work