x86: xsave: fix error condition in save_i387_xstate()
Actually return failure on error. Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
a19aac8548
commit
f364eadab5
1 changed files with 2 additions and 0 deletions
|
@ -121,6 +121,8 @@ int save_i387_xstate(void __user *buf)
|
||||||
err |= __put_user(FP_XSTATE_MAGIC2,
|
err |= __put_user(FP_XSTATE_MAGIC2,
|
||||||
(__u32 __user *) (buf + sig_xstate_size
|
(__u32 __user *) (buf + sig_xstate_size
|
||||||
- FP_XSTATE_MAGIC2_SIZE));
|
- FP_XSTATE_MAGIC2_SIZE));
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue