aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/octeontx/nic_main.c
diff options
context:
space:
mode:
authorAndrew Scull <ascull@google.com>2022-04-21 16:11:08 +0000
committerTom Rini <trini@konsulko.com>2022-05-03 15:50:45 -0400
commit398dc367c53dcff4f61116a3de66ba4e4e6b8586 (patch)
tree3224eda3a6f0c361a5c504de5ec0ed309170c091 /drivers/net/octeontx/nic_main.c
parentec8eba8c2d4e10e77699c56918d2078210aa1339 (diff)
pci: Range check address conversions
When converting between PCI bus and physical addresses, include a length parameter that can be used to check that the entire range fits within one of the PCI regions. This prevents an address being returned that might be only partially valid for the range it is going to be used for. Where the range check is not wanted, passing a length of 0 will have the same behaviour as before this change. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/net/octeontx/nic_main.c')
0 files changed, 0 insertions, 0 deletions