From 8ce2895666780d0c2e830983d334559df3d797cd Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Tue, 30 Dec 2025 07:43:43 +0200 Subject: [PATCH] Use correct paths when firmware path isn't set in sysfs Swap arguments to concat_path, passing "/lib/firmware" into the first argument and keeping the second one (firmware-path from remoteproc). Fixes: 4946411bbb8a ("Use firmware load path from sysfs") Signed-off-by: Dmitry Baryshkov --- pd-mapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pd-mapper.c b/pd-mapper.c index 1152bb8..a731672 100644 --- a/pd-mapper.c +++ b/pd-mapper.c @@ -242,7 +242,7 @@ static DIR *opendir_firmware(char *firmware_path, char *out_path_opened, size_t return fw_dir; err: - ret = concat_path(fw_sysfs_path, FIRMWARE_BASE, out_path_opened, out_path_size); + ret = concat_path(FIRMWARE_BASE, firmware_path, out_path_opened, out_path_size); if (ret) return fw_dir;