public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] aerdrv: fix sanity check in report_resume
@ 2008-12-01  7:31 Hidetoshi Seto
  2008-12-01  7:58 ` Zhang, Yanmin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Hidetoshi Seto @ 2008-12-01  7:31 UTC (permalink / raw)
  To: linux-pci, tom.l.nguyen, yanmin.zhang; +Cc: linux-kernel

What we have to check here before calling it is err_handler->resume.
It seems that this block have been copy&pasted from report_slot_reset.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
---
 drivers/pci/pcie/aer/aerdrv_core.c |    2 +-
 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 dfc63d0..aac7006 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;
-- 
1.6.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-01-05 21:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01  7:31 [PATCH] aerdrv: fix sanity check in report_resume Hidetoshi Seto
2008-12-01  7:58 ` Zhang, Yanmin
2008-12-16 18:31 ` Jesse Barnes
2009-01-05 21:03 ` Jesse Barnes
2009-01-05 21:23   ` Jesse Barnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox