mirror of
https://github.com/linux-msm/pd-mapper.git
synced 2026-02-25 13:12:10 -08:00
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: 4946411bbb ("Use firmware load path from sysfs")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user