Cihula, Joseph
2009-Mar-05 23:43 UTC
[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@intel.com>
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@lists.xensource.com
http://lists.xensource.com/xen-devel