mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch 1/2] xsave: fix error condition in save_i387_xstate()
@ 2008-10-07 21:04 Suresh Siddha
  2008-10-07 21:04 ` [patch 2/2] xsave: set FP, SSE bits in the xsave header in the user sigcontext Suresh Siddha
  2008-10-07 21:59 ` [patch 1/2] xsave: fix error condition in save_i387_xstate() H. Peter Anvin
  0 siblings, 2 replies; 3+ messages in thread
From: Suresh Siddha @ 2008-10-07 21:04 UTC (permalink / raw)
  To: hpa, mingo, tglx; +Cc: linux-kernel, Suresh Siddha

[-- Attachment #1: fix_save_i387_xstate_err.patch --]
[-- Type: text/plain, Size: 502 bytes --]

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

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;

-- 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-07 21:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-07 21:04 [patch 1/2] xsave: fix error condition in save_i387_xstate() Suresh Siddha
2008-10-07 21:04 ` [patch 2/2] xsave: set FP, SSE bits in the xsave header in the user sigcontext Suresh Siddha
2008-10-07 21:59 ` [patch 1/2] xsave: fix error condition in save_i387_xstate() H. Peter Anvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome