summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>2008-12-01 16:31:06 +0900
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-12-16 13:26:45 -0800
commitb0b801dd7de3d77bb143d3c98199b487df0fc63a (patch)
tree3b751a26a91b1b1373f6c61a23b727f50d205532 /drivers/pci
parent1bda71282ded6a2e09a2db7c8884542fb46bfd4f (diff)
downloadblackbird-op-linux-b0b801dd7de3d77bb143d3c98199b487df0fc63a.tar.gz
blackbird-op-linux-b0b801dd7de3d77bb143d3c98199b487df0fc63a.zip
PCI: fix aer resume sanity check
What we have to check here before calling is err_handler->resume, not ->slot_reset. Looks like a copy & paste error from report_slot_reset. Acked-by: Yanmin Zhang <yanmin.zhang@intel.com> Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pcie/aer/aerdrv_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c
index dfc63d01f20a..aac7006949f1 100644
--- a/drivers/pci/pcie/aer/aerdrv_core.c
+++ b/drivers/pci/pcie/aer/aerdrv_core.c
@@ -252,7 +252,7 @@ static void report_resume(struct pci_dev *dev, void *data)
if (!dev->driver ||
!dev->driver->err_handler ||
- !dev->driver->err_handler->slot_reset)
+ !dev->driver->err_handler->resume)
return;
err_handler = dev->driver->err_handler;
OpenPOWER on IntegriCloud