diff options
author | Tom Rini <trini@konsulko.com> | 2024-09-02 14:13:57 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-09-02 14:13:57 -0600 |
commit | 8c069df8dd727bf78426aaa4604750ab93732f04 (patch) | |
tree | 17ac5bea9d7200864aec9a5f531caed0a3e4e3ec /boot/image-android.c | |
parent | f0ec3e608902ca1f573e5b7017da6bc804483f55 (diff) | |
parent | 1312faac5f52d27cfb45dfe1a5a93a2944ca5c21 (diff) |
Merge tag 'v2024.10-rc4' into next
Prepare v2024.10-rc4
Diffstat (limited to 'boot/image-android.c')
-rw-r--r-- | boot/image-android.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/boot/image-android.c b/boot/image-android.c index 09c7a44e058..774565fd1fe 100644 --- a/boot/image-android.c +++ b/boot/image-android.c @@ -393,10 +393,9 @@ int android_image_get_ramdisk(const void *hdr, const void *vendor_boot_img, if (!android_image_get_data(hdr, vendor_boot_img, &img_data)) return -EINVAL; - if (!img_data.ramdisk_size) { - *rd_data = *rd_len = 0; - return -1; - } + if (!img_data.ramdisk_size) + return -ENOENT; + if (img_data.header_version > 2) { ramdisk_ptr = img_data.ramdisk_addr; memcpy((void *)(ramdisk_ptr), (void *)img_data.vendor_ramdisk_ptr, |