Merge tag 'ptrace_stop-cleanup-for-v5.19' of git://git.kernel.org/pub/scm/linux/kerne...
[sfrench/cifs-2.6.git] / arch / xtensa / kernel / ptrace.c
index 22cdaa6729d3e281815efc3e76c6b93ac671131c..f29477162edefdff2bee2eeb3017f1b8e5947f55 100644 (file)
@@ -224,12 +224,12 @@ const struct user_regset_view *task_user_regset_view(struct task_struct *task)
 
 void user_enable_single_step(struct task_struct *child)
 {
-       child->ptrace |= PT_SINGLESTEP;
+       set_tsk_thread_flag(child, TIF_SINGLESTEP);
 }
 
 void user_disable_single_step(struct task_struct *child)
 {
-       child->ptrace &= ~PT_SINGLESTEP;
+       clear_tsk_thread_flag(child, TIF_SINGLESTEP);
 }
 
 /*