Merge "Reset failed decryption count on successful decryptions" into lmp-dev
This commit is contained in:
commit
7639a6ab60
1 changed files with 3 additions and 0 deletions
|
@ -1797,6 +1797,9 @@ static int test_mount_encrypted_fs(struct crypt_mnt_ftr* crypt_ftr,
|
|||
|
||||
if (rc == 0) {
|
||||
crypt_ftr->failed_decrypt_count = 0;
|
||||
if (orig_failed_decrypt_count != 0) {
|
||||
put_crypt_ftr_and_key(crypt_ftr);
|
||||
}
|
||||
|
||||
/* Save the name of the crypto block device
|
||||
* so we can mount it when restarting the framework. */
|
||||
|
|
Loading…
Reference in a new issue