aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorAndrea della Porta <[email protected]>2024-11-08 10:42:56 +0100
committerBjorn Helgaas <[email protected]>2024-11-15 11:17:52 -0600
commit5e316d34b53039346e252d0019e2f4167af2c0ef (patch)
tree78f2c379e5f343fb676daebdbdc25962e19e1da2 /lib/test_fortify/write_overflow-memcpy.c
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
PCI: of_property: Assign PCI instead of CPU bus address to dynamic PCI nodes
When populating "ranges" property for a PCI bridge or endpoint, of_pci_prop_ranges() incorrectly uses the CPU address of the resource. In such PCI nodes, the window should instead be in PCI address space. Call pci_bus_address() on the resource in order to obtain the PCI bus address. [Previous discussion at: https://lore.kernel.org/all/8b4fa91380fc4754ea80f47330c613e4f6b6592c.1724159867.git.andrea.porta@suse.com/] Link: https://lore.kernel.org/r/[email protected] Fixes: 407d1a51921e ("PCI: Create device tree node for bridge") Tested-by: Herve Codina <[email protected]> Signed-off-by: Andrea della Porta <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Cc: [email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions