[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] txt: Fix return code for S3 integrity



The original patch left in a debug return value from one of the memory 
integrity checks.  This patch returns the correct error code in case of a 
failure.  This was re-tested to ensure that it still passes for the expected 
case.

Signed-off-by: Joseph Cihula <joseph.cihula@xxxxxxxxx>

diff -r 7f573cb76db4 xen/arch/x86/tboot.c
--- a/xen/arch/x86/tboot.c      Tue Mar 03 13:22:28 2009 +0000
+++ b/xen/arch/x86/tboot.c      Thu Mar 05 14:31:47 2009 -0800
@@ -450,7 +450,7 @@ int tboot_s3_resume(void)

     tboot_gen_domain_integrity(g_tboot_shared->s3_key, &mac);
     if ( mac != domain_mac )
-        return 0; /* -3 */
+        return -3;

     return 0;
 }


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.