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:
parent
2a3b28a3f5
commit
836fa88cbd
2 changed files with 5 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue