diff options
author | Krzysztof Wilczyński <[email protected]> | 2021-02-16 20:59:35 +0000 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-02-18 10:56:02 -0600 |
commit | 1002573ee33efef0988a9a546c075a9fa37d2498 (patch) | |
tree | 4383f95bff688fdb5183b2fddae3eb5c8f5aa208 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 7c53f6b671f4aba70ff15e1b05148b10d58c2837 (diff) |
PCI: cadence: Fix DMA range mapping early return error
Function cdns_pcie_host_map_dma_ranges() iterates over a PCIe host bridge
DMA ranges using the resource_list_for_each_entry() iterator, returning an
error if cdns_pcie_host_bar_config() fails.
49e427e6bdd1 ("Merge branch 'pci/host-probe-refactor'") botched a merge so
it *always* returned after the first DMA range, even if no error occurred.
Fix the error checking so we return early only when an error occurs.
[bhelgaas: commit log]
Fixes: 49e427e6bdd1 ("Merge branch 'pci/host-probe-refactor'")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Wilczyński <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions