Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287193
b: refs/heads/master
c: 2af276d
h: refs/heads/master
i:
  287191: f2a2542
v: v3
  • Loading branch information
Will Deacon authored and Russell King committed Feb 2, 2012
1 parent 7bdd63f commit 2cac811
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 97f1040982d7935716e9a45a26ccd5cc8fe92f8c
refs/heads/master: 2af276dfb1722e97b190bd2e646b079a2aa674db
5 changes: 2 additions & 3 deletions trunk/arch/arm/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ static int restore_vfp_context(struct vfp_sigframe __user *frame)
if (magic != VFP_MAGIC || size != VFP_STORAGE_SIZE)
return -EINVAL;

vfp_flush_hwstate(thread);

/*
* Copy the floating point registers. There can be unused
* registers see asm/hwcap.h for details.
Expand All @@ -251,9 +253,6 @@ static int restore_vfp_context(struct vfp_sigframe __user *frame)
__get_user_error(h->fpinst, &frame->ufp_exc.fpinst, err);
__get_user_error(h->fpinst2, &frame->ufp_exc.fpinst2, err);

if (!err)
vfp_flush_hwstate(thread);

return err ? -EFAULT : 0;
}

Expand Down

0 comments on commit 2cac811

Please sign in to comment.