Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112786
b: refs/heads/master
c: ed40595
h: refs/heads/master
v: v3
  • Loading branch information
Suresh Siddha authored and Ingo Molnar committed Aug 14, 2008
1 parent abed9bc commit 0e13283
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ee2b92a8201a40021ecd1aee6f0625dc03bacc54
refs/heads/master: ed405958057ca6a8c4c9178a7a3b1167fabb45f5
6 changes: 6 additions & 0 deletions trunk/arch/x86/kernel/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ int save_i387_xstate(void __user *buf)
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
* clean context for the bytes not touched by the fxsave/xsave.
*/
__clear_user(buf, sig_xstate_size);

if (task_thread_info(tsk)->status & TS_XSAVE)
err = xsave_user(buf);
else
Expand Down

0 comments on commit 0e13283

Please sign in to comment.