kernel: work: Add missing ASSERT for args

Add missing ASSERT for dwork & queue.

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
Lingao Meng 2024-09-24 12:07:21 +08:00 committed by Fabio Baltieri
commit 836fa88cbd
2 changed files with 5 additions and 1 deletions

View file

@ -1038,7 +1038,7 @@ static void handle_1cpu_basic_schedule_running(struct k_work *work)
*/
if (atomic_dec(&resubmits_left) > 0) {
/* Schedule again on current queue */
state->schedule_res = k_work_schedule_for_queue(NULL, one_dwork,
state->schedule_res = k_work_schedule_for_queue(one_dwork->work.queue, one_dwork,
K_MSEC(DELAY_MS));
} else {
/* Flag that it didn't schedule */