]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Handle error return from pci_reset_bridge_secondary_bus()
authorSinan Kaya <okaya@codeaurora.org>
Thu, 19 Jul 2018 23:04:09 +0000 (18:04 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 19 Jul 2018 23:04:23 +0000 (18:04 -0500)
commit83a49d1c320b6d41604d75cadd01382e588222c7
tree24f18b1c09237b2ff8ce447abd23994a7ea53a7b
parent96f57ba5ec10462e71092ecbe98f3f1f3b8cc7cb
PCI: Handle error return from pci_reset_bridge_secondary_bus()

Commit 22e37e8f430c ("PCI: Add a return type for
pci_reset_bridge_secondary_bus()") added a return value to the function to
return if a device is accessible following a reset.  Callers are not
checking the value.

Pass error code up high in the stack if device is not accessible.

Fixes: 22e37e8f430c ("PCI: Add a return type for pci_reset_bridge_secondary_bus()")
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/pciehp_hpc.c
drivers/pci/pci.c
drivers/pci/pcie/aer.c
drivers/pci/pcie/err.c