diff options
| author | Linmao Li <lilinmao@kylinos.cn> | 2026-09-15 16:28:26 +0800 |
|---|---|---|
| committer | Bjorn Helgaas <bhelgaas@google.com> | 2026-10-14 14:04:28 -0500 |
| commit | cfe96ce583c51bf6e034d4038c652a1e8227867c (patch) | |
| tree | 99037a38317623823f44c1aeed751f59ff14648a /rust/kernel/alloc | |
| parent | fe108800a865b268eec103e4940c248c85a86e9f (diff) | |
PCI: cadence: Store the core controller in platform drvdata
cdns_plat_pcie_probe() stores a struct cdns_plat_pcie pointer with
platform_set_drvdata(). cdns_plat_pcie_shutdown() and the callbacks in
cdns_pcie_pm_ops retrieve the same pointer with dev_get_drvdata() but use
it as a struct cdns_pcie pointer. This makes them read phy_count and phy
beyond the wrapper.
struct cdns_plat_pcie only contains a pointer to struct cdns_pcie. Drop
the redundant wrapper and store the struct cdns_pcie pointer directly.
Fixes: bd22885aa188 ("PCI: cadence: Refactor driver to use as a core library")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Aksh Garg <a-garg7@ti.com>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260915082826.4135665-1-lilinmao@kylinos.cn
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
