Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb0a5e7e authored by Bowgo Tsai's avatar Bowgo Tsai Committed by android-build-merger
Browse files

Merge "fs_mgr_avb: fix return value check of fs_mgr_get_boot_config()"

am: 51da2aaa

Change-Id: Icf84ec85fe8e6c32238433a1e9ffec202ccb5a75
parents e6f9497c 51da2aaa
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -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 (!fs_mgr_get_boot_config("vbmeta.hash_alg", &hash_alg)) {
        return false;
    }
    if (hash_alg == "sha256" || hash_alg == "sha512") {
        return true;
    }
    }

    return false;
}