Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Roland McGrath and committed by
Linus Torvalds
f9cb02b0 1a4c6be4

+2 -2
+2 -2
arch/x86/kernel/ptrace.c
··· 1160 1160 if (kbuf) { 1161 1161 const compat_ulong_t *k = kbuf; 1162 1162 while (count > 0 && !ret) { 1163 - ret = putreg(target, pos, *k++); 1163 + ret = putreg32(target, pos, *k++); 1164 1164 count -= sizeof(*k); 1165 1165 pos += sizeof(*k); 1166 1166 } ··· 1171 1171 ret = __get_user(word, u++); 1172 1172 if (ret) 1173 1173 break; 1174 - ret = putreg(target, pos, word); 1174 + ret = putreg32(target, pos, word); 1175 1175 count -= sizeof(*u); 1176 1176 pos += sizeof(*u); 1177 1177 }