From: Ralf Baechle Date: Wed, 16 Feb 2005 21:22:40 +0000 (+0000) Subject: 32-bit compatibility for ptrace GETEVENTMSG operation. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=09276d905ef7498212ef69d5c324d027dc405896;p=linux-beck.git 32-bit compatibility for ptrace GETEVENTMSG operation. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/kernel/ptrace32.c b/arch/mips/kernel/ptrace32.c index eee207969c21..a8a72c9a1cca 100644 --- a/arch/mips/kernel/ptrace32.c +++ b/arch/mips/kernel/ptrace32.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include @@ -273,6 +272,11 @@ asmlinkage int sys32_ptrace(int request, int pid, int addr, int data) ret = ptrace_detach(child, data); break; + case PTRACE_GETEVENTMSG: + ret = put_user(child->ptrace_message, + (unsigned int __user *) (unsigned long) data); + break; + default: ret = ptrace_request(child, request, addr, data); break;