pci: Check region ranges are addressable
authorAndrew Scull <ascull@google.com>
Thu, 21 Apr 2022 16:11:07 +0000 (16:11 +0000)
committerTom Rini <trini@konsulko.com>
Tue, 3 May 2022 19:50:45 +0000 (15:50 -0400)
commitec8eba8c2d4e10e77699c56918d2078210aa1339
tree90f8fc61f747fc7b9b333ba32e86eac31dd600ff
parent60f4142aa2e4156c6e4661184e6e9d9f1f8fb561
pci: Check region ranges are addressable

When parsing the `ranges` DT node, check that both extremes of the
regions are addressable without overflow. This assumption can then be
safely made when processing the regions.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c