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

kernel: work: check handler when submit to queue



Assert that the handler of a work is not NULL when submitting
it to the queue. This allows early detection of the
code that is submitting a non-NULL work with NULL handler to
the work queue (where it happens), rather than right before the
work item get executed in the queue (when it happens).

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