Skip to content

Commit

Permalink
x86: xsave: fix error condition in save_i387_xstate()
Browse files Browse the repository at this point in the history
Actually return failure on error.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
Suresh Siddha authored and H. Peter Anvin committed Oct 7, 2008
1 parent a19aac8 commit f364ead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/xsave.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ int save_i387_xstate(void __user *buf)
err |= __put_user(FP_XSTATE_MAGIC2,
(__u32 __user *) (buf + sig_xstate_size
- FP_XSTATE_MAGIC2_SIZE));
if (err)
return err;
}

return 1;
Expand Down

0 comments on commit f364ead

Please sign in to comment.