aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/tboot.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-06 19:10:29 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-03-06 19:10:29 +0000
commit31e93ebbdd541a9b9bbb08089b663c1201a069d9 (patch)
treec9e5c1c174a0128aaa27b91bcd0dc1886afa8275 /xen/arch/x86/tboot.c
parent80334149516ceaa6e893460b17ab6ccf6646b101 (diff)
downloadxen-31e93ebbdd541a9b9bbb08089b663c1201a069d9.tar.gz
xen-31e93ebbdd541a9b9bbb08089b663c1201a069d9.tar.bz2
xen-31e93ebbdd541a9b9bbb08089b663c1201a069d9.zip
tboot: 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>
Diffstat (limited to 'xen/arch/x86/tboot.c')
-rw-r--r--xen/arch/x86/tboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/tboot.c b/xen/arch/x86/tboot.c
index ed20e9951f..e259cd5da1 100644
--- a/xen/arch/x86/tboot.c
+++ b/xen/arch/x86/tboot.c
@@ -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;
}