
From: Simon Glass <sjg@chromium.org> Rather than using bflow->fname, which assumes that it is the same as the passed-in filename, use the passed in filename. This can be different in some cases. Signed-off-by: Simon Glass <sjg@chromium.org> --- boot/bootmeth-uclass.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/boot/bootmeth-uclass.c b/boot/bootmeth-uclass.c index f0e541c0934..603ad98fc3a 100644 --- a/boot/bootmeth-uclass.c +++ b/boot/bootmeth-uclass.c @@ -388,8 +388,7 @@ int bootmeth_alloc_other(struct bootflow *bflow, const char *fname, if (ret) return log_msg_ret("all", ret); - if (!bootflow_img_add(bflow, bflow->fname, type, abuf_addr(buf), - size)) + if (!bootflow_img_add(bflow, fname, type, abuf_addr(buf), size)) return log_msg_ret("boi", -ENOMEM); return 0; -- 2.43.0