Skip to content
Commit 019ae15f authored by Yong Cong Sin's avatar Yong Cong Sin Committed by Fabio Baltieri
Browse files

tests: kernel: work: fix uninitialized timer's work item



The `test_1cpu_drain_wait` tests iff the thread of a work queue
that is waiting to be drained can submit work item to the
queue. A timer is created with a callback funciton to submit a
work item to the same queue, to help demonstrate that behavior.

However, the work item submitted by `test_drain_wait_cb` to the
`coophi_queue` isn't initialized, and can hit assertion if it
is processed by the work queue.

Fixes #63559

Signed-off-by: default avatarYong Cong Sin <ycsin@meta.com>
parent 0cd13592
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment