Commit 09f45dd
committed
Fix current-task check in mo_task_suspend()
The previous implementation compared kcb->task_current directly with
the task's list node, which became incorrect after introducing the
embedded ready-queue list-node structure. This commit updates the
condition to compare the underlying task object instead:
kcb->task_current->data == task
This ensures mo_task_suspend() correctly detects when the suspended
task is the currently running one.1 parent 4355ce8 commit 09f45dd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
| |||
0 commit comments