summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-19 19:16:21 +0900
committerTom Rini <trini@konsulko.com>2017-10-23 17:28:17 -0400
commit16067e6b87293eeb1fc4bac3edc0fd675b94d1a8 (patch)
treef4c650f0d1fec812fbcba9e48039756025a30fa0 /tools
parent3aca4a44f826e3f83b868ffc705cffb05d258a3e (diff)
downloadu-boot-16067e6b87293eeb1fc4bac3edc0fd675b94d1a8.tar.gz
u-boot-16067e6b87293eeb1fc4bac3edc0fd675b94d1a8.tar.bz2
u-boot-16067e6b87293eeb1fc4bac3edc0fd675b94d1a8.zip
tools: image: fix node name of signature node in FIT
Both "conf_name" and "sig_name" point to the name of config node. The latter should be the name of the signature node. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/image-host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/image-host.c b/tools/image-host.c
index 5e4d690714..c60d4adb3d 100644
--- a/tools/image-host.c
+++ b/tools/image-host.c
@@ -513,7 +513,7 @@ static int fit_config_get_data(void *fit, int conf_noffset, int noffset,
int ret, len;
conf_name = fit_get_name(fit, conf_noffset, NULL);
- sig_name = fit_get_name(fit, conf_noffset, NULL);
+ sig_name = fit_get_name(fit, noffset, NULL);
debug("%s: conf='%s', sig='%s'\n", __func__, conf_name, sig_name);
/* Get a list of nodes we want to hash */