diff options
author | Suresh Siddha <suresh.b.siddha@intel.com> | 2008-10-07 23:04:27 +0200 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-07 23:36:01 +0200 |
commit | f364eadab59b316ea0bd9f9bc01af0ad89065569 (patch) | |
tree | 6fabc04f8ededd3f14e5187ec4ac06bd7d6e50e9 | |
parent | x86: make setup_xstate_init() __init (diff) | |
download | linux-f364eadab59b316ea0bd9f9bc01af0ad89065569.tar.xz linux-f364eadab59b316ea0bd9f9bc01af0ad89065569.zip |
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>
-rw-r--r-- | arch/x86/kernel/xsave.c | 2 |
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) err |= __put_user(FP_XSTATE_MAGIC2, (__u32 __user *) (buf + sig_xstate_size - FP_XSTATE_MAGIC2_SIZE)); + if (err) + return err; } return 1; |