Commit 71ba699
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 fdfd6b5 commit 71ba699
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
| 787 | + | |
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| |||
0 commit comments