diff options
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/image.c b/common/image.c index 640e83b..eb92e63 100644 --- a/common/image.c +++ b/common/image.c @@ -1010,7 +1010,8 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images, image_multi_getimg(images->legacy_hdr_os, 1, &rd_data, &rd_len); } #ifdef CONFIG_ANDROID_BOOT_IMAGE - else if ((genimg_get_format(images) == IMAGE_FORMAT_ANDROID) && + else if ((genimg_get_format((void *)images->os.start) + == IMAGE_FORMAT_ANDROID) && (!android_image_get_ramdisk((void *)images->os.start, &rd_data, &rd_len))) { /* empty */ |