Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 144183
b: refs/heads/master
c: 06c38d5
h: refs/heads/master
i:
  144181: 76bc3bb
  144179: 180fb27
  144175: 0dc5e58
v: v3
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Apr 20, 2009
1 parent 4436fa2 commit 284f628
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: fc61e6636d13eb3a23eb29b4327eeee9de0ef3bc
refs/heads/master: 06c38d5e36b12d040839ff224e805146c0368556
4 changes: 3 additions & 1 deletion trunk/arch/x86/kernel/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int save_i387_xstate(void __user *buf)

if (!used_math())
return 0;
clear_used_math(); /* trigger finit */

if (task_thread_info(tsk)->status & TS_USEDFPU) {
/*
* Start with clearing the user buffer. This will present a
Expand All @@ -114,6 +114,8 @@ int save_i387_xstate(void __user *buf)
return -1;
}

clear_used_math(); /* trigger finit */

if (task_thread_info(tsk)->status & TS_XSAVE) {
struct _fpstate __user *fx = buf;
struct _xstate __user *x = buf;
Expand Down

0 comments on commit 284f628

Please sign in to comment.