x86 ptrace: fix compat PTRACE_SETREGS
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>
This commit is contained in:
committed by
Linus Torvalds
parent
1a4c6be4ac
commit
f9cb02b0be
@@ -1160,7 +1160,7 @@ static int genregs32_set(struct task_struct *target,
|
|||||||
if (kbuf) {
|
if (kbuf) {
|
||||||
const compat_ulong_t *k = kbuf;
|
const compat_ulong_t *k = kbuf;
|
||||||
while (count > 0 && !ret) {
|
while (count > 0 && !ret) {
|
||||||
ret = putreg(target, pos, *k++);
|
ret = putreg32(target, pos, *k++);
|
||||||
count -= sizeof(*k);
|
count -= sizeof(*k);
|
||||||
pos += sizeof(*k);
|
pos += sizeof(*k);
|
||||||
}
|
}
|
||||||
@@ -1171,7 +1171,7 @@ static int genregs32_set(struct task_struct *target,
|
|||||||
ret = __get_user(word, u++);
|
ret = __get_user(word, u++);
|
||||||
if (ret)
|
if (ret)
|
||||||
break;
|
break;
|
||||||
ret = putreg(target, pos, word);
|
ret = putreg32(target, pos, word);
|
||||||
count -= sizeof(*u);
|
count -= sizeof(*u);
|
||||||
pos += sizeof(*u);
|
pos += sizeof(*u);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user