[PATCH] MPT fusion: handle mpt_resume() failure while resuming
From: Dmitriy Monakhov
Date: Fri Feb 23 2007 - 16:42:54 EST
Since mpt-fusion-handle-pci-layer-error-on-resume.patch
function mpt_resume() can return error code.
Signed-off-by: Monakhov Dmitriy <dmonakhov@xxxxxxxxxx>
---
drivers/message/fusion/mptscsih.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c
index decadbe..96be1d6 100644
--- a/drivers/message/fusion/mptscsih.c
+++ b/drivers/message/fusion/mptscsih.c
@@ -1191,8 +1191,11 @@ mptscsih_resume(struct pci_dev *pdev)
MPT_ADAPTER *ioc = pci_get_drvdata(pdev);
struct Scsi_Host *host = ioc->sh;
MPT_SCSI_HOST *hd;
+ int ret;
- mpt_resume(pdev);
+ ret = mpt_resume(pdev);
+ if (ret)
+ return ret;
if(!host)
return 0;
--
1.4.4.4
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/