Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions libkernelflinger/android.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,8 +628,10 @@ static EFI_STATUS setup_ramdisk(UINT8 *bootimage, UINT8 *initbootimage, UINT8 *v
struct vendor_boot_img_hdr_v4 *vendor_hdr = (struct vendor_boot_img_hdr_v4 *)vendorbootimage;
struct boot_img_hdr_v4 *boot_hdr = (struct boot_img_hdr_v4 *)bootimage;

if (initbootimage)
boot_hdr = (struct boot_img_hdr_v4 *)initbootimage;
if (initbootimage) {
boot_hdr = (struct boot_img_hdr_v4 *)initbootimage;
bootimage = initbootimage;
}

UINT32 page_size = vendor_hdr->page_size;
UINT32 vendor_ramdisk_offset = ALIGN(sizeof(struct vendor_boot_img_hdr_v4), page_size);
Expand Down
Loading