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

Commit 86da4a42 authored by David Zeuthen's avatar David Zeuthen Committed by android-build-merger
Browse files

Merge "fs_mgr: Clear AvbOps struct." am: 6ea4f213

am: 983d542d

Change-Id: I77f3230373de0aff17fd66a784b7b25834b97f1b
parents a404e8ff 983d542d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -96,7 +96,9 @@ FsManagerAvbOps::FsManagerAvbOps(const std::string& device_file_by_name_prefix)
    // We only need to provide the implementation of read_from_partition()
    // operation since that's all what is being used by the avb_slot_verify().
    // Other I/O operations are only required in bootloader but not in
    // user-space so we set them as dummy operations.
    // user-space so we set them as dummy operations. Also zero the entire
    // struct so operations added in the future will be set to NULL.
    memset(&avb_ops_, 0, sizeof(AvbOps));
    avb_ops_.read_from_partition = read_from_partition;
    avb_ops_.read_rollback_index = dummy_read_rollback_index;
    avb_ops_.validate_vbmeta_public_key = dummy_validate_vbmeta_public_key;