From: Hidetoshi Seto Date: Mon, 1 Dec 2008 07:31:06 +0000 (+0900) Subject: PCI: fix aer resume sanity check X-Git-Tag: v2.6.28~23^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b0b801dd7de3d77bb143d3c98199b487df0fc63a;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Hidetoshi Seto Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index dfc63d01f20..aac7006949f 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;