summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-10-07 14:04:27 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-07 14:36:01 -0700
commitf364eadab59b316ea0bd9f9bc01af0ad89065569 (patch)
tree6fabc04f8ededd3f14e5187ec4ac06bd7d6e50e9 /arch/x86/kernel
parenta19aac8548d85cf15d744335b8e82201da760d80 (diff)
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>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/xsave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c
index ed5274a5bb0..448fde96963 100644
--- a/arch/x86/kernel/xsave.c
+++ b/arch/x86/kernel/xsave.c
@@ -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;