summaryrefslogtreecommitdiff
path: root/drivers/nfc
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-06-19 07:35:34 -0600
committerBjorn Helgaas <bhelgaas@google.com>2012-06-20 17:28:53 -0600
commit8291550f8479fde2cee571d1b367e6918819f189 (patch)
tree111ffade25983b6c92dc8b2dc8634f2ed978a533 /drivers/nfc
parentd6d88c832eaea6c6947ddf7b664601930a9f8a14 (diff)
PCI: fix upstream P2P bridge checks when enabling OBFF and LTR
pci_enable_obff() and pci_enable_ltr() incorrectly check "dev->bus" instead of "dev->bus->self" to determine whether the upstream device is a P2P bridge or a host bridge. For devices on the root bus, the upstream device is a host bridge, "dev->bus != NULL" and "dev->bus->self == NULL", and we panic with a null pointer dereference. These functions should previously have panicked when called on devices supporting OBFF or LTR, so they should be regarded as untested. Found by Coverity (CID 143038 and CID 143039). Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/nfc')
0 files changed, 0 insertions, 0 deletions