mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 11:44:02 +00:00
Change to the new prototype/name for Get/WriteStoredVersions().
This should fix the compilation error after Luigi's latest change went in. Review URL: http://codereview.chromium.org/2358002
This commit is contained in:
@@ -109,9 +109,9 @@ int LoadKernel(LoadKernelParams* params) {
|
|||||||
* when the RW firmware is verified. Is it harmful to call SetupTPM()
|
* when the RW firmware is verified. Is it harmful to call SetupTPM()
|
||||||
* again if it's already initialized? It'd be easier if we could just do
|
* again if it's already initialized? It'd be easier if we could just do
|
||||||
* that. */
|
* that. */
|
||||||
tpm_kernel_key_version = GetStoredVersion(KERNEL_KEY_VERSION);
|
GetStoredVersions(KERNEL_VERSIONS,
|
||||||
tpm_kernel_version = GetStoredVersion(KERNEL_VERSION);
|
&tpm_kernel_key_version,
|
||||||
|
&tpm_kernel_version);
|
||||||
do {
|
do {
|
||||||
/* Read GPT data */
|
/* Read GPT data */
|
||||||
gpt.sector_bytes = blba;
|
gpt.sector_bytes = blba;
|
||||||
@@ -241,13 +241,12 @@ int LoadKernel(LoadKernelParams* params) {
|
|||||||
if (good_partition >= 0) {
|
if (good_partition >= 0) {
|
||||||
|
|
||||||
/* See if we need to update the TPM */
|
/* See if we need to update the TPM */
|
||||||
if (lowest_kernel_key_version > tpm_kernel_key_version) {
|
if ((lowest_kernel_key_version > tpm_kernel_key_version) ||
|
||||||
WriteStoredVersion(KERNEL_KEY_VERSION, lowest_kernel_key_version);
|
(lowest_kernel_key_version == tpm_kernel_key_version &&
|
||||||
WriteStoredVersion(KERNEL_VERSION, lowest_kernel_version);
|
lowest_kernel_version > tpm_kernel_version)) {
|
||||||
}
|
WriteStoredVersions(KERNEL_VERSIONS,
|
||||||
else if (lowest_kernel_key_version == tpm_kernel_key_version &&
|
lowest_kernel_key_version,
|
||||||
lowest_kernel_version > tpm_kernel_version) {
|
lowest_kernel_version);
|
||||||
WriteStoredVersion(KERNEL_VERSION, lowest_kernel_version);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BOOT_MODE_RECOVERY != params->boot_mode) {
|
if (BOOT_MODE_RECOVERY != params->boot_mode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user