diff options
author | Dennis Dalessandro <[email protected]> | 2018-09-05 16:08:03 +0000 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2018-09-11 21:44:52 -0500 |
commit | d8a5281035895cdb5ff77756eff72966ec76edd0 (patch) | |
tree | fd6983c4d7a420afcc58a81be14f1ccabe5a3a4c /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 34fb6bf9b13aef4ca14224f2175ecd189e98160b (diff) |
PCI: Fix faulty logic in pci_reset_bus()
The pci_reset_bus() function calls pci_probe_reset_slot() to determine
whether to call the slot or bus reset. The check has faulty logic in that
it does not account for pci_probe_reset_slot() being able to return an
errno. Fix by only calling the slot reset when the function returns 0.
Fixes: 811c5cb37df4 ("PCI: Unify try slot and bus reset API")
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Michael J. Ruhl <[email protected]>
Cc: Sinan Kaya <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions