aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBolarinwa Olayemi Saheed <[email protected]>2020-07-13 19:55:26 +0200
committerKalle Valo <[email protected]>2020-07-20 20:09:36 +0300
commit9a8ab2bfb678193f326239143290691c965faede (patch)
tree91edc7118854c355bc2813fec4d82bdb5c9b7401 /tools/perf/scripts/python
parenta9bf090932032bd259672814670df701ecb3ff51 (diff)
ath9k: Check the return value of pcie_capability_read_*()
On failure pcie_capability_read_dword() sets it's last parameter, val to 0. However, with Patch 14/14, it is possible that val is set to ~0 on failure. This would introduce a bug because (x & x) == (~0 & x). This bug can be avoided without changing the function's behaviour if the return value of pcie_capability_read_dword is checked to confirm success. Check the return value of pcie_capability_read_dword() to ensure success. Suggested-by: Bjorn Helgaas <[email protected]> Signed-off-by: Bolarinwa Olayemi Saheed <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions