]> git.sur5r.net Git - u-boot/commitdiff
tools: image: fix node name of signature node in FIT
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 19 Oct 2017 10:16:21 +0000 (19:16 +0900)
committerTom Rini <trini@konsulko.com>
Mon, 23 Oct 2017 21:28:17 +0000 (17:28 -0400)
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>
tools/image-host.c

index 5e4d690714160dcd68932f8eb6cf728640532ea6..c60d4adb3dece07d85c34cfaec8355d773bfb45a 100644 (file)
@@ -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 */