Merge "fs_mgr_avb: fix return value check of fs_mgr_get_boot_config()" am: 51da2aaa36
am: eb0a5e7e26
am: 07fb5bf7f0
Change-Id: I6d4888f2c376f9d7f24f592bb1c4898a3ea04fb8
This commit is contained in:
commit
3286a6fe73
|
@ -454,12 +454,12 @@ static bool init_is_avb_used() {
|
|||
// be returned when there is an error.
|
||||
|
||||
std::string hash_alg;
|
||||
if (fs_mgr_get_boot_config("vbmeta.hash_alg", &hash_alg) == 0) {
|
||||
if (hash_alg == "sha256" || hash_alg == "sha512") {
|
||||
return true;
|
||||
}
|
||||
if (!fs_mgr_get_boot_config("vbmeta.hash_alg", &hash_alg)) {
|
||||
return false;
|
||||
}
|
||||
if (hash_alg == "sha256" || hash_alg == "sha512") {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue