Skip to content

Commit

Permalink
32-bit compatibility for ptrace GETEVENTMSG operation.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent 54f2da7 commit 09276d9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/mips/kernel/ptrace32.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
#include <linux/smp_lock.h>
#include <linux/user.h>
#include <linux/security.h>
#include <linux/signal.h>

#include <asm/cpu.h>
#include <asm/fpu.h>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 09276d9

Please sign in to comment.