aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/xsave.c
diff options
context:
space:
mode:
authorSuresh Siddha <suresh.b.siddha@intel.com>2008-10-07 17:04:27 -0400
committerH. Peter Anvin <hpa@zytor.com>2008-10-07 17:36:01 -0400
commitf364eadab59b316ea0bd9f9bc01af0ad89065569 (patch)
tree6fabc04f8ededd3f14e5187ec4ac06bd7d6e50e9 /arch/x86/kernel/xsave.c
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/xsave.c')
-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 ed5274a5bb0f..448fde96963c 100644
--- a/arch/x86/kernel/xsave.c
+++ b/arch/x86/kernel/xsave.c
@@ -121,6 +121,8 @@ int save_i387_xstate(void __user *buf)
121 err |= __put_user(FP_XSTATE_MAGIC2, 121 err |= __put_user(FP_XSTATE_MAGIC2,
122 (__u32 __user *) (buf + sig_xstate_size 122 (__u32 __user *) (buf + sig_xstate_size
123 - FP_XSTATE_MAGIC2_SIZE)); 123 - FP_XSTATE_MAGIC2_SIZE));
124 if (err)
125 return err;
124 } 126 }
125 127
126 return 1; 128 return 1;