Skip to content
Commit 398dc367 authored by Andrew Scull's avatar Andrew Scull Committed by Tom Rini
Browse files

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: default avatarAndrew Scull <ascull@google.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent ec8eba8c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment