summaryrefslogtreecommitdiffstats
path: root/common/image-fit.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-05-10 15:35:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-05-10 15:35:36 +0200
commitc06573f9d13d9dec8c45058057a05d6096497dd1 (patch)
tree07e359f4e268920301470fece4c370637412d2c5 /common/image-fit.c
parent97cfccda76e94860d72e72ecdc9f839a6d6f3057 (diff)
downloadbarebox-c06573f9d13d9dec8c45058057a05d6096497dd1.tar.gz
barebox-c06573f9d13d9dec8c45058057a05d6096497dd1.tar.xz
bootm: fit: Print error when image is not hashed
When fit is configured to check hashes print an error when an image does not contain hashes instead of failing silently. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r--common/image-fit.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 4f5c1f16c8..a6e1082704 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -436,9 +436,12 @@ static int fit_open_image(struct fit_handle *handle, const char *unit, const voi
if (ret < 0)
return ret;
}
+
+ if (ret < 0) {
+ pr_err("image '%s': '%s' does not have hashes\n", unit, desc);
+ return ret;
+ }
}
- if (ret < 0)
- return ret;
*outdata = data;
*outsize = data_len;