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

Commit ce25baf0 authored by bowgotsai's avatar bowgotsai
Browse files

fs_mgr_verity: correct dm_target_spec->next

dm_target_spec->next should be set to the next multiple of 8.
It doesn't matter before because dm_ioctl->target_count is set to 1 so
only the first dm_target_spec will be processed.

Bug: None
Test: check device can boot with dm-verity
Change-Id: I96b9b0307a40b05640db06d1c614c16d8144bb47
parent a59c7bcc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -285,7 +285,7 @@ static int load_verity_table(struct dm_ioctl *io, const std::string &name,

    // set next target boundary
    verity_params += strlen(verity_params) + 1;
    verity_params = (char*)(((unsigned long)verity_params + 7) & ~8);
    verity_params = (char*)(((uintptr_t)verity_params + 7) & ~7);
    tgt->next = verity_params - buffer;

    // send the ioctl to load the verity table