From patchwork Thu Oct 19 10:16:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 116356 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp313790qgn; Thu, 19 Oct 2017 03:17:28 -0700 (PDT) X-Google-Smtp-Source: ABhQp+SbI6iUHrG1R8FHfE9HjQ9Z7y1OuwCD4nYIPYJ9vEy256BT7zyjKfu2xOq9VlVa3TzBFNrj X-Received: by 10.80.140.36 with SMTP id p33mr1741648edp.130.1508408248043; Thu, 19 Oct 2017 03:17:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508408248; cv=none; d=google.com; s=arc-20160816; b=vyfVklSDnp2u6qTHdMo1NhcfmIdp2yA3wHzryA/Aq6iPSMj9biN0p0zIhqczb8SYxG HRyUNzcYwaR+CUpex/W8lK55puUV+0yre5f+OG4xGO++WAFfVvoNvOMxas2Av3O7h7Da q6btkRBreMqb0btKR1tWsA6BQVgfnuc4412FQMC/HCt0xP/1mZTSvBolbLOiU8Tx45Iq P+td/zHWuhUrj4tQmxFqG7KSZiZZNmmuwheYBf8/VPIahmwUdC31nhUXwZr/MxSLGwfa mVRpe2kNHsvAvdNGdVSlqEWQ8h386g1PtBX58dcbx3psgve9ZMj41xR8pKt8m+Oajqn6 yRzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=9DOljXrQlA1rAZ+Q0n0VY49L/eTN0baRiuv+OW/SfT4=; b=XhYIBgrn6tGFMcPbtbEUGxrA6GYUMgX3QNk2pCIvdIG+9X3YKO3eg2jF6RAZwivjj/ pIqef33geeF/vI0zPpFaOmhTNkQQb/jtjZfvP1Qhe3oLT7PltTGcOUPpEjCcip2e4+bd WLFyqHZt8mtv1yDUL2eJPJKJ4b5fnKP/XDzjsDqjtbKyiDkLotJtbK6CTuhFSxf/w0QE 80SKgzWSpNEi1D45qy2hTPMe39757Y8oIbpot+FZ7B/gM3P4Mef/E51UCWtmjswLYFaF 3fcdya8PljeAA8wV+28kA04kadRVclOrAWhQ79gpJ6pYlR+5knot6D9qkjLw2BjxGNjo RWlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=25zASP+Q; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 93si4123610edl.507.2017.10.19.03.17.27; Thu, 19 Oct 2017 03:17:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=25zASP+Q; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id A639DC21F6C; Thu, 19 Oct 2017 10:17:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id CDF21C21EC7; Thu, 19 Oct 2017 10:17:21 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BDF4AC21EC7; Thu, 19 Oct 2017 10:17:19 +0000 (UTC) Received: from conuserg-07.nifty.com (conuserg-07.nifty.com [210.131.2.74]) by lists.denx.de (Postfix) with ESMTPS id DDB10C21E3E for ; Thu, 19 Oct 2017 10:17:18 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id v9JAGTVb011474; Thu, 19 Oct 2017 19:16:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com v9JAGTVb011474 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1508408190; bh=gYRlxuWmHAw3jAgK305y1qOBSeWOnHWF4QVHiQAdxHo=; h=From:To:Cc:Subject:Date:From; b=25zASP+Q1IE2S7gouA2IIQLxzpdaTfbY9Lqwi/0YNwN+FeAgytgCtLWdjKuaTPB5S cyrpvaWK81/qKKvY3RE7ScOkaYQC4lg8M20IaEk7WEX40qSGWUqXy2d+UokRDuf7iX IjrMQMPoa0VEFmmq9e9wwPvLcMTv/7m1lFpbxryJZ3oNelknqIox7si20N7OMA58Le HAIh3PCFRo8R1o/Eo9C87fcbV/YQ7FJe3ondhO6ux0+1y4QDl/s4EKi70z9q6OZxq1 3l23+SDYGjFyyZRbH2qKAJxJIQcPflgqm/1lKsFtxnhsQ/Xj3W+Ixwody/GpHMtQqQ uVFsjrjXVgKOg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 19 Oct 2017 19:16:21 +0900 Message-Id: <1508408181-9930-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Tom Rini Subject: [U-Boot] [PATCH] tools: image: fix node name of signature node in FIT X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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 Reviewed-by: Simon Glass --- tools/image-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c index e82020b..eaa9c41 100644 --- a/tools/image-host.c +++ b/tools/image-host.c @@ -515,7 +515,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 */