Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Unified Diff: vboot_firmware/lib/firmware_image_fw.c

Issue 2711006: Import recent tpm_lite changes that make all TPM commands return a status. (Closed) Base URL: ssh://git@chromiumos-git/vboot_reference.git
Patch Set: cleanup from gauravsh's feedback Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vboot_firmware/include/tlcl.h ('k') | vboot_firmware/lib/rollback_index.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vboot_firmware/lib/firmware_image_fw.c
diff --git a/vboot_firmware/lib/firmware_image_fw.c b/vboot_firmware/lib/firmware_image_fw.c
index dc86887bab66933025cd3e44f6c4c361edd9db6d..75f4b09f30ea2e49686be420e97e0162dd34337d 100644
--- a/vboot_firmware/lib/firmware_image_fw.c
+++ b/vboot_firmware/lib/firmware_image_fw.c
@@ -10,6 +10,7 @@
#include "cryptolib.h"
#include "rollback_index.h"
+#include "tss_constants.h"
#include "utility.h"
/* Macro to determine the size of a field structure in the FirmwareImage
@@ -310,7 +311,9 @@ int VerifyFirmwareDriver_f(uint8_t* root_key_blob,
* this is done by setting the globalLock bit, which is cleared only by
* TPM_Init at reboot.
*/
- LockFirmwareVersions();
+ if (TPM_SUCCESS != LockFirmwareVersions()) {
+ return VERIFY_FIRMWARE_TPM_ERROR;
+ }
/* Determine which firmware (if any) to jump to.
*
« no previous file with comments | « vboot_firmware/include/tlcl.h ('k') | vboot_firmware/lib/rollback_index.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698