[patch 1/2] xsave: fix error condition in save_i387_xstate()

From: Suresh Siddha
Date: Tue Oct 07 2008 - 17:09:43 EST


Signed-off-by: Suresh Siddha <suresh.b.siddha@xxxxxxxxx>
---

Index: tip/arch/x86/kernel/xsave.c
===================================================================
--- tip.orig/arch/x86/kernel/xsave.c 2008-10-02 10:30:55.000000000 -0700
+++ tip/arch/x86/kernel/xsave.c 2008-10-02 10:31:26.000000000 -0700
@@ -121,6 +121,8 @@
err |= __put_user(FP_XSTATE_MAGIC2,
(__u32 __user *) (buf + sig_xstate_size
- FP_XSTATE_MAGIC2_SIZE));
+ if (err)
+ return err;
}

return 1;

--

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/