2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/pci/controller/dwc
Dan Carpenter 044b45be04
PCI: qcom: Prevent use of uninitialized data in qcom_pcie_suspend_noirq()
Smatch complains that "ret" could be uninitialized if "pcie->icc_mem" is
NULL and "pm_suspend_target_state == PM_SUSPEND_MEM".

Silence this warning by initializing ret to zero.

Fixes: 78b5f6f8855e ("PCI: qcom: Add OPP support to scale performance")
Link: https://lore.kernel.org/linux-pci/20240708180539.1447307-4-dan.carpenter@linaro.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
2024-07-10 05:39:15 +00:00
..
Kconfig PCI: dwc: Convert SOC_SIFIVE to ARCH_SIFIVE 2023-12-16 00:22:37 +00:00
Makefile PCI: rcar-gen4: Add R-Car Gen4 PCIe controller support for host mode 2023-10-23 12:40:10 +00:00
pci-dra7xx.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pci-exynos.c Merge branch 'pci/controller/remove-void-return' 2024-01-15 12:10:40 -06:00
pci-imx6.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pci-keystone.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pci-layerscape-ep.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pci-layerscape.c Merge branch 'pci/controller/layerscape' 2024-01-15 12:10:38 -06:00
pci-meson.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00
pcie-al.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00
pcie-armada8k.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00
pcie-artpec6.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pcie-bt1.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00
pcie-designware-ep.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pcie-designware-host.c PCI: dwc: Strengthen the MSI address allocation logic 2024-03-10 18:08:04 +00:00
pcie-designware-plat.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pcie-designware.c PCI: dwc: Pass the eDMA mapping format flag directly from glue drivers 2024-05-28 09:51:17 -05:00
pcie-designware.h PCI: dwc: Pass the eDMA mapping format flag directly from glue drivers 2024-05-28 09:51:17 -05:00
pcie-dw-rockchip.c Merge branch 'pci/irq-clean-up' 2024-01-15 12:10:40 -06:00
pcie-fu740.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00
pcie-hisi.c PCI: hisi: Avoid invalid address space conversions 2022-01-03 15:05:28 -06:00
pcie-histb.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00
pcie-intel-gw.c Merge branch 'pci/controller/dwc' 2024-01-15 12:10:37 -06:00
pcie-keembay.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pcie-kirin.c Merge branch 'pci/controller/remove-void-return' 2024-01-15 12:10:40 -06:00
pcie-qcom-ep.c PCI: qcom-ep: Disable resources unconditionally during PERST# assert 2024-07-09 16:56:30 -05:00
pcie-qcom.c PCI: qcom: Prevent use of uninitialized data in qcom_pcie_suspend_noirq() 2024-07-10 05:39:15 +00:00
pcie-rcar-gen4.c PCI: dwc: Pass the eDMA mapping format flag directly from glue drivers 2024-05-28 09:51:17 -05:00
pcie-spear13xx.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00
pcie-tegra194-acpi.c PCI: dwc: Simplify in/outbound iATU setup methods 2022-08-01 15:15:09 -05:00
pcie-tegra194.c Merge branch 'pci/controller/tegra194' 2024-05-16 18:14:13 -05:00
pcie-uniphier-ep.c PCI: endpoint: Remove "core_init_notifier" flag 2024-04-10 17:52:42 +00:00
pcie-uniphier.c Merge branch 'pci/irq-clean-up' 2024-01-15 12:10:40 -06:00
pcie-visconti.c PCI: dwc: Drop host prefix from struct dw_pcie_host_ops members 2024-01-06 07:51:08 +00:00