Commit 5d27cea
committed
Refine current-task check in mo_task_suspend()
The previous implementation compared `kcb->task_current` with the task’s
list node in the global task list. A list node is only a linkage
element, not a stable identifier for a task, so this comparison is not
appropriate.
This patch updates the check to compare the task's data structure (TCB),
which properly represents the task identity.1 parent 3d94a32 commit 5d27cea
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
886 | | - | |
| 886 | + | |
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
| |||
0 commit comments