Return -ENOSYS from arch_ptrace and compat_arch_ptrace rather than calling ptrace_request or compat_ptrace_request. Signed-off-by: Roland McGrath <roland@xxxxxxxxxx> --- arch/x86/kernel/ptrace.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index 777d8f9..4d5561c 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c @@ -1010,7 +1010,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) #endif default: - ret = ptrace_request(child, request, addr, data); + ret = -ENOSYS; break; } @@ -1266,7 +1266,8 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request, return arch_ptrace(child, request, addr, data); default: - return compat_ptrace_request(child, request, addr, data); + ret = -ENOSYS; + break; } return ret; -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html