summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-08-13 16:56:04 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-08-13 16:56:04 +0200
commitc1ecf62939df7256f6fc77568cb7953d71746c55 (patch)
tree49fff98953a40c85409fe6158d059d6fc11534b3 /common
parent5c7690f9152b4b898654ee01e633ce5d677faf18 (diff)
parentf4d74a52a7d43c4973dc3996bc69d1956a6b304d (diff)
downloadbarebox-c1ecf62939df7256f6fc77568cb7953d71746c55.tar.gz
barebox-c1ecf62939df7256f6fc77568cb7953d71746c55.tar.xz
Merge branch 'for-next/misc'
Diffstat (limited to 'common')
-rw-r--r--common/image-fit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/image-fit.c b/common/image-fit.c
index 6cbf23250d..dfd1fa02c9 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -289,11 +289,12 @@ static int fit_check_rsa_signature(struct device_node *sig_node,
}
key_path = xasprintf("/signature/key-%s", key_name);
key_node = of_find_node_by_path(key_path);
- free(key_path);
if (!key_node) {
- pr_info("failed to find key node\n");
+ pr_info("failed to find key node %s\n", key_path);
+ free(key_path);
return -ENOENT;
}
+ free(key_path);
ret = rsa_of_read_key(key_node, &key);
if (ret) {