mirror of
https://github.com/linux-msm/pd-mapper.git
synced 2026-02-25 13:12:10 -08:00
b4c1e362f16c8426f32778fadb4d578bb2ef0f2f
pd-mapper will fail to start due to a SIGSEGV when any of the firmware
for the various remoteprocs are not present. ltrace isolated where the
problem was:
....
strlen("qcom/sc8280xp/LENOVO/21BX/qcadsp"...) = 41
dirname(0xfffff9b66450, 0xfffff9b683b0, 36, 0xfffffff) = 0xfffff9b66450
strcat("/lib/firmware/", "qcom/sc8280xp/LENOVO/21BX") = "/lib/firmware/qcom/sc8280xp/LENO"...
opendir("/lib/firmware/qcom/sc8280xp/LENO"...) = nil
readdir(nil <no return ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++
With this fix, pd-mapper now displays the following messages when the
firmware is not present:
pd-mapper: Cannot open /lib/firmware/qcom/sc8280xp/LENOVO/21BX: No such file or directory
pd-mapper: Cannot open /lib/firmware/qcom/sc8280xp/LENOVO/21BX: No such file or directory
no pd maps available
Signed-off-by: Brian Masney <bmasney@redhat.com>
Description
Languages
C
98.5%
Makefile
1.5%