Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967090AbYCSWx0 (ORCPT ); Wed, 19 Mar 2008 18:53:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1765691AbYCSVVa (ORCPT ); Wed, 19 Mar 2008 17:21:30 -0400 Received: from mx1.redhat.com ([66.187.233.31]:56010 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966025AbYCSVV1 (ORCPT ); Wed, 19 Mar 2008 17:21:27 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Linus Torvalds , Andrew Morton Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: Ingo Molnar , Thomas Gleixner Cc: David Miller , sparclinux@vger.kernel.org Cc: Paul Mackerras , linuxppc-dev@ozlabs.org Cc: Richard Henderson Cc: tony.luck@intel.com, linux-ia64@vger.kernel.org X-Fcc: ~/Mail/linus Subject: [PATCH 7/8] x86 ptrace: arch_ptrace -ENOSYS return In-Reply-To: Roland McGrath's message of Wednesday, 19 March 2008 14:17:14 -0700 <20080319211714.8B14226F995@magilla.localdomain> References: <20080319211714.8B14226F995@magilla.localdomain> Emacs: where editing text is like playing Paganini on a glass harmonica. Message-Id: <20080319212050.32AA126F995@magilla.localdomain> Date: Wed, 19 Mar 2008 14:20:50 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1142 Lines: 36 Return -ENOSYS from arch_ptrace and compat_arch_ptrace rather than calling ptrace_request or compat_ptrace_request. Signed-off-by: Roland McGrath --- 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/