projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: 8643/3: arm/ptrace: Preserve previous registers for short regset write
[firefly-linux-kernel-4.4.55.git]
/
arch
/
arm
/
kernel
/
ptrace.c
diff --git
a/arch/arm/kernel/ptrace.c
b/arch/arm/kernel/ptrace.c
index ef9119f7462ea11550fc0e6edaa756d9edc39905..d54c53b7ab6355388b2f179ab8439475bf3b86a6 100644
(file)
--- a/
arch/arm/kernel/ptrace.c
+++ b/
arch/arm/kernel/ptrace.c
@@
-600,7
+600,7
@@
static int gpr_set(struct task_struct *target,
const void *kbuf, const void __user *ubuf)
{
int ret;
const void *kbuf, const void __user *ubuf)
{
int ret;
- struct pt_regs newregs;
+ struct pt_regs newregs
= *task_pt_regs(target)
;
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
&newregs,
ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
&newregs,
@@
-733,8
+733,8
@@
static int vfp_set(struct task_struct *target,
if (ret)
return ret;
if (ret)
return ret;
- vfp_flush_hwstate(thread);
thread->vfpstate.hard = new_vfp;
thread->vfpstate.hard = new_vfp;
+ vfp_flush_hwstate(thread);
return 0;
}
return 0;
}