Null terminate firmware_value string to prevent
strlen() read past the end of buffer error on AOSP.
Otherwise pd-mapper will crash:
console:/ # pd-mapper
FORTIFY: strlen: detected read past end of buffer
Aborted
134|console:/ #
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Fixes
pd-mapper.c:199:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'?
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Traverse the remoteproc class and use the firmware location for each one
to search for json files and load these.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This implements the minimum scope of pd-mapper in order to trigger
loading of wlan firmware on SDM845.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>