Commit f364eada authored by Suresh Siddha's avatar Suresh Siddha Committed by H. Peter Anvin

x86: xsave: fix error condition in save_i387_xstate()

Actually return failure on error.
Signed-off-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent a19aac85
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment