summaryrefslogtreecommitdiff
path: root/SOURCE/module/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCE/module/misc.c')
-rwxr-xr-xSOURCE/module/misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/SOURCE/module/misc.c b/SOURCE/module/misc.c
index f9d535f..220b9de 100755
--- a/SOURCE/module/misc.c
+++ b/SOURCE/module/misc.c
@@ -590,7 +590,12 @@ void diag_task_brief(struct task_struct *tsk, struct diag_task_detail *detail)
detail->pid = tsk->pid;
detail->tgid = tsk->tgid;
+// [[PATCH v2 7/7] sched: Change task_struct::state](https://lore.kernel.org/all/[email protected]/#r)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0)
detail->state = tsk->state;
+#else
+ detail->state = tsk->__state;
+#endif
detail->task_type = diag_get_task_type(tsk);
ns = task_active_pid_ns(tsk);
if (ns && ns != &init_pid_ns) {