diff options
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/ptrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c index 702c33efea84..d862e396b099 100644 --- a/arch/x86/kernel/ptrace.c +++ b/arch/x86/kernel/ptrace.c | |||
@@ -1160,7 +1160,7 @@ static int genregs32_set(struct task_struct *target, | |||
1160 | if (kbuf) { | 1160 | if (kbuf) { |
1161 | const compat_ulong_t *k = kbuf; | 1161 | const compat_ulong_t *k = kbuf; |
1162 | while (count > 0 && !ret) { | 1162 | while (count > 0 && !ret) { |
1163 | ret = putreg(target, pos, *k++); | 1163 | ret = putreg32(target, pos, *k++); |
1164 | count -= sizeof(*k); | 1164 | count -= sizeof(*k); |
1165 | pos += sizeof(*k); | 1165 | pos += sizeof(*k); |
1166 | } | 1166 | } |
@@ -1171,7 +1171,7 @@ static int genregs32_set(struct task_struct *target, | |||
1171 | ret = __get_user(word, u++); | 1171 | ret = __get_user(word, u++); |
1172 | if (ret) | 1172 | if (ret) |
1173 | break; | 1173 | break; |
1174 | ret = putreg(target, pos, word); | 1174 | ret = putreg32(target, pos, word); |
1175 | count -= sizeof(*u); | 1175 | count -= sizeof(*u); |
1176 | pos += sizeof(*u); | 1176 | pos += sizeof(*u); |
1177 | } | 1177 | } |