x86 ptrace: fix compat PTRACE_SETREGS
authorRoland McGrath <roland@redhat.com>
Fri, 22 Feb 2008 04:37:24 +0000 (20:37 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 22 Feb 2008 15:35:06 +0000 (07:35 -0800)
Simple typo fix for regression introduced by the user_regset changes.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/kernel/ptrace.c

index 702c33efea84dfad40b15d62cd7775958d653979..d862e396b0994e0878a481efd6c9d81edfc90cbd 100644 (file)
@@ -1160,7 +1160,7 @@ static int genregs32_set(struct task_struct *target,
        if (kbuf) {
                const compat_ulong_t *k = kbuf;
                while (count > 0 && !ret) {
-                       ret = putreg(target, pos, *k++);
+                       ret = putreg32(target, pos, *k++);
                        count -= sizeof(*k);
                        pos += sizeof(*k);
                }
@@ -1171,7 +1171,7 @@ static int genregs32_set(struct task_struct *target,
                        ret = __get_user(word, u++);
                        if (ret)
                                break;
-                       ret = putreg(target, pos, word);
+                       ret = putreg32(target, pos, word);
                        count -= sizeof(*u);
                        pos += sizeof(*u);
                }