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
This commit is contained in:
parent
a59c7bcc48
commit
ce25baf06f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue