aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/um/ptrace_64.c')
-rw-r--r--arch/x86/um/ptrace_64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/um/ptrace_64.c b/arch/x86/um/ptrace_64.c
index a629694ee750..e14c43a2d187 100644
--- a/arch/x86/um/ptrace_64.c
+++ b/arch/x86/um/ptrace_64.c
@@ -121,7 +121,7 @@ int poke_user(struct task_struct *child, long addr, long data)
121 else if ((addr >= offsetof(struct user, u_debugreg[0])) && 121 else if ((addr >= offsetof(struct user, u_debugreg[0])) &&
122 (addr <= offsetof(struct user, u_debugreg[7]))) { 122 (addr <= offsetof(struct user, u_debugreg[7]))) {
123 addr -= offsetof(struct user, u_debugreg[0]); 123 addr -= offsetof(struct user, u_debugreg[0]);
124 addr = addr >> 2; 124 addr = addr >> 3;
125 if ((addr == 4) || (addr == 5)) 125 if ((addr == 4) || (addr == 5))
126 return -EIO; 126 return -EIO;
127 child->thread.arch.debugregs[addr] = data; 127 child->thread.arch.debugregs[addr] = data;