From 8af19e54f7199b5fa5626c81cbd09708fbab925e Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 2 Aug 2025 06:50:04 +1200 Subject: [PATCH] boot: Use provided filename with bootmeth_alloc_other() 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 --- 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;