diff options
author | Pali Rohár <[email protected]> | 2020-06-01 15:03:15 +0200 |
---|---|---|
committer | Lorenzo Pieralisi <[email protected]> | 2020-07-07 15:37:22 +0100 |
commit | b1bd5714472cc72e14409f5659b154c765a76c65 (patch) | |
tree | 8bcdd2fe9b13886477737b13926e13218e80cc4a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | b3a9e3b9622ae10064826dccb4f7a52bd88c7407 (diff) |
PCI: aardvark: Indicate error in 'val' when config read fails
Most callers of config read do not check for return value. But most of the
ones that do, checks for error indication in 'val' variable.
This patch updates error handling in advk_pcie_rd_conf() function. If PIO
transfer fails then 'val' variable is set to 0xffffffff which indicates
failture.
Link: https://lore.kernel.org/r/20200528162604.GA323482@bjorn-Precision-5520
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Pali Rohár <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions