You've already forked Magisk
mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-09-06 06:36:58 +00:00
qcdt: pad the last dtb too
This commit is contained in:
committed by
John Wu
parent
b45d922463
commit
dfc65b95f7
@@ -266,6 +266,7 @@ static int dtb_patch(const qcdt_hdr *hdr, const char *in, const char *out) {
|
|||||||
val.second.len = do_align(size, page_size);
|
val.second.len = do_align(size, page_size);
|
||||||
free(fdt);
|
free(fdt);
|
||||||
}
|
}
|
||||||
|
write_zero(fd, align_off(lseek(fd, 0, SEEK_CUR), page_size));
|
||||||
|
|
||||||
// Patch tables
|
// Patch tables
|
||||||
auto tables_rw = reinterpret_cast<Table *>(addr + sizeof(qcdt_hdr));
|
auto tables_rw = reinterpret_cast<Table *>(addr + sizeof(qcdt_hdr));
|
||||||
|
|||||||
Reference in New Issue
Block a user