diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 2341efe7fe026f496095c4a9c1526a69cad3849a..c79b91d09e35a700374bedf3c9e9e815f378aa8a 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -681,7 +681,7 @@ static int ptrace_peek_siginfo(struct task_struct *child, break; #ifdef CONFIG_COMPAT - if (unlikely(is_compat_task())) { + if (unlikely(in_compat_syscall())) { compat_siginfo_t __user *uinfo = compat_ptr(data); if (copy_siginfo_to_user32(uinfo, &info) ||