diff options
| author | Tom Rini <[email protected]> | 2022-12-11 09:40:25 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-12-11 09:40:25 -0500 |
| commit | 7a7b0856ca01f0dadc940f6f1bc6df44129ad9d0 (patch) | |
| tree | 2bad16f7baf7283e4d8af9c11ad8ef89dd217ecb /common | |
| parent | 8f170408774b30aa4ee91b3cc90ba09b564d4651 (diff) | |
| parent | fda2253d121f05921e419edffe615c607917792a (diff) | |
Merge tag 'u-boot-nand-20221211' of https://source.denx.de/u-boot/custodians/u-boot-nand-flash
Merge tag 'u-boot-nand-20221211' of https://source.denx.de/u-boot/custodians/u-boot-nand-flash
- cmd: nand: Extend nand info to print ecc information
- rawnand: omap_gpmc: driver model support (the first patches of the series)
- mtd: nand: make Samsung SLC NAND usable again
- cmd: mtd: check if a block has to be skipped or erased
- spl: spl_legacy: fix invalid offset in SPL_COPY_PAYLOAD_ONLY
Diffstat (limited to 'common')
| -rw-r--r-- | common/spl/spl_legacy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c index 4c7f44687e8..16851c55eb5 100644 --- a/common/spl/spl_legacy.c +++ b/common/spl/spl_legacy.c @@ -106,7 +106,7 @@ int spl_load_legacy_img(struct spl_image_info *spl_image, * is set */ if (spl_image->flags & SPL_COPY_PAYLOAD_ONLY) - dataptr += sizeof(hdr); + dataptr += sizeof(*hdr); load->read(load, dataptr, spl_image->size, (void *)(unsigned long)spl_image->load_addr); @@ -116,7 +116,7 @@ int spl_load_legacy_img(struct spl_image_info *spl_image, lzma_len = LZMA_LEN; /* dataptr points to compressed payload */ - dataptr = offset + sizeof(hdr); + dataptr = offset + sizeof(*hdr); debug("LZMA: Decompressing %08lx to %08lx\n", dataptr, spl_image->load_addr); |
