aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorRex Zhu <[email protected]>2018-06-05 09:46:45 +0800
committerBjorn Helgaas <[email protected]>2018-06-29 21:07:17 -0500
commit445ec321e71b3124abacfb358f72ac6a70d87602 (patch)
treeacbecd71b968ec0667bcebed2652d5111edc8e5e /tools/perf/scripts/python/mem-phys-addr.py
parent11eb0e0e8dea8b97cff972b09cf6fb033b729dff (diff)
PCI: Avoid accessing memory outside the ROM BAR
pci_get_rom_size() accepts the base and size of the ROM BAR as arguments. The byte at "rom + size" is the first byte *past* the ROM, so change ">" to ">=" to avoid accessing beyond the actual length of the ROM BAR. Signed-off-by: Rex Zhu <[email protected]> [bhelgaas: changelog] Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions