aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 a5c9910d234f..09a085bde0d4 100644
--- a/arch/x86/um/ptrace_64.c
+++ b/arch/x86/um/ptrace_64.c
@@ -125,7 +125,7 @@ int poke_user(struct task_struct *child, long addr, long data)
125 else if ((addr >= offsetof(struct user, u_debugreg[0])) && 125 else if ((addr >= offsetof(struct user, u_debugreg[0])) &&
126 (addr <= offsetof(struct user, u_debugreg[7]))) { 126 (addr <= offsetof(struct user, u_debugreg[7]))) {
127 addr -= offsetof(struct user, u_debugreg[0]); 127 addr -= offsetof(struct user, u_debugreg[0]);
128 addr = addr >> 2; 128 addr = addr >> 3;
129 if ((addr == 4) || (addr == 5)) 129 if ((addr == 4) || (addr == 5))
130 return -EIO; 130 return -EIO;
131 child->thread.arch.debugregs[addr] = data; 131 child->thread.arch.debugregs[addr] = data;