diff options
| author | Willy Tarreau <[email protected]> | 2014-04-18 12:19:50 +0000 |
|---|---|---|
| committer | Jason Cooper <[email protected]> | 2014-04-24 03:47:15 +0000 |
| commit | b6d07e0273d3296cfbdc88145b8a00ddbefb310a (patch) | |
| tree | 6a26623616de8474c907f833649031651c409232 /tools/perf/scripts/python/netdev-times.py | |
| parent | Linux 3.15-rc1 (diff) | |
| download | kernel-b6d07e0273d3296cfbdc88145b8a00ddbefb310a.tar.gz kernel-b6d07e0273d3296cfbdc88145b8a00ddbefb310a.zip | |
PCI: mvebu: fix off-by-one in the computed size of the mbus windows
mvebu_pcie_handle_membase_change() and
mvebu_pcie_handle_iobase_change() do not correctly compute the window
size. PCI uses an inclusive start/end address pair, which requires a
+1 when converting to size.
This only worked because a bug in the mbus driver allowed it to
silently accept and round up bogus sizes.
Fix this by adding one to the computed size.
Fixes: 45361a4fe446 ('PCIe driver for Marvell Armada 370/XP systems')
Cc: <[email protected]> # v3.11+
Signed-off-by: Willy Tarreau <[email protected]>
Reviewed-By: Jason Gunthorpe <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
Link: https://lkml.kernel.org/r/1397823593-1932-5-git-send-email-thomas.petazzoni@free-electrons.com
Tested-by: Neil Greatorex <[email protected]>
Acked-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Jason Cooper <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
