summaryrefslogtreecommitdiffstats
path: root/drivers/iio/inkern.c
diff options
context:
space:
mode:
authorAndreas Noever <andreas.noever@gmail.com>2014-01-23 21:59:27 +0100
committerBjorn Helgaas <bhelgaas@google.com>2014-02-11 15:16:09 -0700
commitc95b0bd6ca3dbb1abf8394c38d26df65d890cb9a (patch)
tree0244c2a3b03cf64e3ddb03b09089e46dcd7cf6da /drivers/iio/inkern.c
parentf5fb40700fc9a52944fbe07148c858a5025908b1 (diff)
downloadop-kernel-dev-c95b0bd6ca3dbb1abf8394c38d26df65d890cb9a.zip
op-kernel-dev-c95b0bd6ca3dbb1abf8394c38d26df65d890cb9a.tar.gz
PCI: Check for child busses which use more bus numbers than allocated
pci_scan_child_bus can (potentially) return a bus number higher than the subordinate value of the child bus. Possible reasons are that bus numbers are reserved for SR-IOV or for CardBus (SR-IOV is done without checks and the CardBus checks are sketchy at best). We clamp the returned value to the actual subordinate value and print a warning if too many bus numbers are reserved. [bhelgaas: whitespace] Signed-off-by: Andreas Noever <andreas.noever@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/iio/inkern.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud