Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287194
b: refs/heads/master
c: 247f499
h: refs/heads/master
v: v3
  • Loading branch information
Dave Martin authored and Russell King committed Feb 2, 2012
1 parent 2cac811 commit e6202b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2af276dfb1722e97b190bd2e646b079a2aa674db
refs/heads/master: 247f4993a5974e6759606c4d380748eecfd273ff
6 changes: 4 additions & 2 deletions trunk/arch/arm/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,13 @@ static int vfp_set(struct task_struct *target,
{
int ret;
struct thread_info *thread = task_thread_info(target);
struct vfp_hard_struct new_vfp = thread->vfpstate.hard;
struct vfp_hard_struct new_vfp;
const size_t user_fpregs_offset = offsetof(struct user_vfp, fpregs);
const size_t user_fpscr_offset = offsetof(struct user_vfp, fpscr);

vfp_sync_hwstate(thread);
new_vfp = thread->vfpstate.hard;

ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
&new_vfp.fpregs,
user_fpregs_offset,
Expand All @@ -723,7 +726,6 @@ static int vfp_set(struct task_struct *target,
if (ret)
return ret;

vfp_sync_hwstate(thread);
thread->vfpstate.hard = new_vfp;
vfp_flush_hwstate(thread);

Expand Down

0 comments on commit e6202b1

Please sign in to comment.