diff options
| author | Hans Zhang <18255117159@163.com> | 2026-03-14 00:55:19 +0800 |
|---|---|---|
| committer | Manivannan Sadhasivam <mani@kernel.org> | 2026-03-27 00:01:31 +0530 |
| commit | 0f34f647f19465b475b13e889dcb33526e166d24 (patch) | |
| tree | 10de89655bdeee2c59af33e67d92991c98fa4fa4 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 28d20b0d895849ce3fe8c6f77baffc08886c2157 (diff) | |
PCI: dwc: Use pcie_get_link_speed() helper for safe array access
Replace direct indexing of pcie_link_speed[] with the new helper
pcie_get_link_speed() in all DesignWare core and glue drivers. This
ensures that out-of-range generation numbers do not cause out-of-bounds
accesses when the helper returns PCI_SPEED_UNKNOWN, and prepares for
the removal of the range check in of_pci_get_max_link_speed().
The actual validation of the "max-link-speed" DT property (e.g., fallback
to a safe default and warning) is added in subsequent patches for each
driver that reads the property.
Signed-off-by: Hans Zhang <18255117159@163.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260313165522.123518-3-18255117159@163.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
