Skip to content

Commit

Permalink
x86 ptrace: fix compat PTRACE_SETREGS
Browse files Browse the repository at this point in the history
Simple typo fix for regression introduced by the user_regset changes.

Signed-off-by: Roland McGrath <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Roland McGrath authored and Linus Torvalds committed Feb 22, 2008
1 parent 1a4c6be commit f9cb02b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit f9cb02b

Please sign in to comment.