diff options
Diffstat (limited to 'arch/sparc64/kernel/ptrace.c')
-rw-r--r-- | arch/sparc64/kernel/ptrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c index e9fc0aa2da38..b803fe9b2c8d 100644 --- a/arch/sparc64/kernel/ptrace.c +++ b/arch/sparc64/kernel/ptrace.c | |||
@@ -944,6 +944,8 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request, | |||
944 | break; | 944 | break; |
945 | 945 | ||
946 | default: | 946 | default: |
947 | if (request == PTRACE_SPARC_DETACH) | ||
948 | request = PTRACE_DETACH; | ||
947 | ret = compat_ptrace_request(child, request, addr, data); | 949 | ret = compat_ptrace_request(child, request, addr, data); |
948 | break; | 950 | break; |
949 | } | 951 | } |
@@ -1036,6 +1038,8 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
1036 | break; | 1038 | break; |
1037 | 1039 | ||
1038 | default: | 1040 | default: |
1041 | if (request == PTRACE_SPARC_DETACH) | ||
1042 | request = PTRACE_DETACH; | ||
1039 | ret = ptrace_request(child, request, addr, data); | 1043 | ret = ptrace_request(child, request, addr, data); |
1040 | break; | 1044 | break; |
1041 | } | 1045 | } |