Fix Shamus bricked by encryption upgrade
Bug: 17358530 Change-Id: I95207b62131224a2ed7ae3b75621a09acd69ea79
This commit is contained in:
parent
47ba10d6d5
commit
b2f682bda8
1 changed files with 11 additions and 0 deletions
11
cryptfs.c
11
cryptfs.c
|
@ -1788,6 +1788,17 @@ static int test_mount_encrypted_fs(struct crypt_mnt_ftr* crypt_ftr,
|
|||
rc = put_crypt_ftr_and_key(crypt_ftr);
|
||||
}
|
||||
SLOGD("Key Derivation Function upgrade: rc=%d\n", rc);
|
||||
|
||||
// Do not fail even if upgrade failed - machine is bootable
|
||||
// Note that if this code is ever hit, there is a *serious* problem
|
||||
// since KDFs should never fail. You *must* fix the kdf before
|
||||
// proceeding!
|
||||
if (rc) {
|
||||
SLOGW("Upgrade failed with error %d,"
|
||||
" but continuing with previous state",
|
||||
rc);
|
||||
rc = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue