For consistency with LOAD_IMAGE_MAX_DECOMPRESSED_BYTES.

Signed-off-by: Daan De Meyer <[email protected]>
---
 hw/core/loader-fit.c | 2 +-
 hw/core/loader.c     | 2 +-
 include/hw/loader.h  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hw/core/loader-fit.c b/hw/core/loader-fit.c
index 2dea485ae0..5895e89f22 100644
--- a/hw/core/loader-fit.c
+++ b/hw/core/loader-fit.c
@@ -70,7 +70,7 @@ static void *fit_load_image_alloc(const void *itb, const char 
*name,
     }
 
     if (!strcmp(comp, "gzip")) {
-        uncomp_len = UBOOT_MAX_GUNZIP_BYTES;
+        uncomp_len = UBOOT_MAX_DECOMPRESSED_BYTES;
         uncomp_data = g_malloc(uncomp_len);
 
         uncomp_len = gunzip(uncomp_data, uncomp_len, (void *) data, sz);
diff --git a/hw/core/loader.c b/hw/core/loader.c
index f940b6a227..090af59df2 100644
--- a/hw/core/loader.c
+++ b/hw/core/loader.c
@@ -739,7 +739,7 @@ static ssize_t load_uboot_image(const char *filename, 
hwaddr *ep,
         ssize_t bytes;
 
         compressed_data = data;
-        max_bytes = UBOOT_MAX_GUNZIP_BYTES;
+        max_bytes = UBOOT_MAX_DECOMPRESSED_BYTES;
         data = g_malloc(max_bytes);
 
         bytes = gunzip(data, max_bytes, compressed_data, hdr->ih_size);
diff --git a/include/hw/loader.h b/include/hw/loader.h
index 3371de506f..cbcb274fce 100644
--- a/include/hw/loader.h
+++ b/include/hw/loader.h
@@ -343,7 +343,7 @@ ssize_t rom_add_option(const char *file, int32_t bootindex);
 
 /* This is the usual maximum in uboot, so if a uImage overflows this, it would
  * overflow on real hardware too. */
-#define UBOOT_MAX_GUNZIP_BYTES (64 << 20)
+#define UBOOT_MAX_DECOMPRESSED_BYTES (64 << 20)
 
 typedef struct RomGap {
     hwaddr base;
-- 
2.51.1


Reply via email to