diff options
author | Philipp Stanner <phasta@kernel.org> | 2025-03-12 11:06:34 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-20 11:18:26 +0300 |
commit | 1bc27d6815f996fa852dbd35231cbe242ca190bf (patch) | |
tree | eaa2bdae7dd66f73bf3b5385be9e876391cc14fa /scripts/gdb/linux/utils.py | |
parent | bbba4c50a2d2a1d3f3bf31cc4b8280cb492bf2c7 (diff) | |
download | linux-1bc27d6815f996fa852dbd35231cbe242ca190bf.tar.xz |
PCI: Fix wrong length of devres array
commit f09d3937d400433080d17982bd1a540da53a156d upstream.
The array for the iomapping cookie addresses has a length of
PCI_STD_NUM_BARS. This constant, however, only describes standard BARs;
while PCI can allow for additional, special BARs.
The total number of PCI resources is described by constant
PCI_NUM_RESOURCES, which is also used in, e.g., pci_select_bars().
Thus, the devres array has so far been too small.
Change the length of the devres array to PCI_NUM_RESOURCES.
Link: https://lore.kernel.org/r/20250312080634.13731-3-phasta@kernel.org
Fixes: bbaff68bf4a4 ("PCI: Add managed partial-BAR request and map infrastructure")
Signed-off-by: Philipp Stanner <phasta@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Krzysztof WilczyĆski <kwilczynski@kernel.org>
Cc: stable@vger.kernel.org # v6.11+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions