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:
Suresh Siddha 2008-10-07 14:04:27 -07:00 committed by H. Peter Anvin
parent a19aac8548
commit f364eadab5

View File

@ -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;