aboutsummaryrefslogtreecommitdiff
path: root/common/spl/spl_fit.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-01-18 07:55:54 -0500
committerTom Rini <trini@konsulko.com>2021-01-18 07:55:54 -0500
commit19c5fdffdc41bfd606b455b46e834d1bff4b2c1e (patch)
treedb1c5abebf12e9aaef80d8e22a472357027b5287 /common/spl/spl_fit.c
parent14ea1b3635b4af8d9e283e3671f7ee872d50b859 (diff)
parentad80a8d0877922db95fd0410314504c840d9d850 (diff)
Merge branch '2021-01-16-assorted-improvements'
- Assorted testing improvements and fixes - Assorted code cleanups
Diffstat (limited to 'common/spl/spl_fit.c')
-rw-r--r--common/spl/spl_fit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index 795e2922ce..a6ad094e91 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -684,8 +684,11 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
ret = spl_load_fit_image(info, sector, fit, base_offset, node,
&image_info);
- if (ret < 0)
- continue;
+ if (ret < 0) {
+ printf("%s: can't load image loadables index %d (ret = %d)\n",
+ __func__, index, ret);
+ return ret;
+ }
if (!spl_fit_image_get_os(fit, node, &os_type))
debug("Loadable is %s\n", genimg_get_os_name(os_type));