linux_dsm_epyc7002/drivers/soc/qcom
Tom Rix 6d3131ace3 soc: qcom: initialize local variable
[ Upstream commit a161ffe4b877721d8917e18e70461d255a090f19 ]

clang static analysis reports this problem

pdr_interface.c:596:6: warning: Branch condition evaluates
  to a garbage value
        if (!req.service_path[0])
            ^~~~~~~~~~~~~~~~~~~~

This check that req.service_path was set in an earlier loop.
However req is a stack variable and its initial value
is undefined.

So initialize req to 0.

Fixes: fbe639b44a ("soc: qcom: Introduce Protection Domain Restart helpers")
Reviewed-by: Sibi Sankar <sibis@codeaurora.org>
Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20200819184637.15648-1-trix@redhat.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:53:19 +01:00
..
apr.c soc: qcom: apr: Fixup the error displayed on lookup failure 2020-09-15 16:12:59 +00:00
cmd-db.c
cpr.c PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
Kconfig PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
kryo-l2-accessors.c
llcc-qcom.c soc: qcom: llcc: use devm_platform_ioremap_resource_byname() 2020-09-17 04:24:49 +00:00
Makefile PM: AVS: qcom-cpr: Move the driver to the qcom specific drivers 2020-10-22 18:38:21 +02:00
mdt_loader.c
ocmem.c
pdr_interface.c soc: qcom: initialize local variable 2020-12-30 11:53:19 +01:00
pdr_internal.h soc: qcom: pdr: Fixup array type of get_domain_list_resp message 2020-09-14 23:53:29 +00:00
qcom_aoss.c
qcom_gsbi.c
qcom-geni-se.c soc: qcom: geni: More properly switch to DMA mode 2020-12-30 11:52:57 +01:00
qmi_encdec.c
qmi_interface.c
rmtfs_mem.c
rpmh-internal.h soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh-rsc.c soc: qcom: rpmh-rsc: Sleep waiting for tcs slots to be free 2020-09-10 16:56:12 +00:00
rpmh.c
rpmhpd.c
rpmpd.c
smd-rpm.c
smem_state.c
smem.c
smp2p.c
smsm.c
socinfo.c ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
trace-rpmh.h
wcnss_ctrl.c