diff options
| author | Tom Rini <[email protected]> | 2021-12-02 07:12:28 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-12-02 07:12:28 -0500 |
| commit | cdccb39e37ba5b43dcae4e783c15f0471acf5529 (patch) | |
| tree | dbd895067824be9bfa258710e4869d3573314b88 /common | |
| parent | fc47dbb26e9d86a688e69e198b2ed0749db16756 (diff) | |
| parent | 6d99f866952bb5df7fe699b3db29a97d75e5c445 (diff) | |
Merge branch '2021-12-01-assorted-updates' into next
- Have SPL skip length 0 images, some clean-ups related to CONFIG
symbols and the known list of unmigrated symbols and pinctrl updates.
Diffstat (limited to 'common')
| -rw-r--r-- | common/spl/spl_fit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c index 5fe0273d66d..774072b85c5 100644 --- a/common/spl/spl_fit.c +++ b/common/spl/spl_fit.c @@ -286,6 +286,13 @@ static int spl_load_fit_image(struct spl_load_info *info, ulong sector, if (fit_image_get_data_size(fit, node, &len)) return -ENOENT; + /* Dont bother to copy 0 byte data, but warn, though */ + if (!len) { + log_warning("%s: Skip load '%s': image size is 0!\n", + __func__, fit_get_name(fit, node, NULL)); + return 0; + } + src_ptr = map_sysmem(ALIGN(load_addr, ARCH_DMA_MINALIGN), len); length = len; |
