libubox: runqueue: fix use-after-free bug
[project/libubox.git] / runqueue.h
index 08879d49d2fa590d9ac70aac1f60110f72425c9b..9728c9c5c86ba3a0af4277965479660d7e8f4eb9 100644 (file)
@@ -63,7 +63,7 @@ struct runqueue_task_type {
 
        /*
         * called to kill a task. must not make any calls to runqueue_task_complete,
-        * it has already been removed from the list.
+        * which will be called after this returns.
         */
        void (*kill)(struct runqueue *q, struct runqueue_task *t);
 };