From: Dmitriy Monakhov <dmonakhov@openvz.org>
To: linux-kernel@vger.kernel.org
Cc: mpt_linux_developer@lsi.com
Subject: [PATCH] MPT fusion: handle mpt_resume() failure while resuming
Date: Sat, 24 Feb 2007 00:42:04 +0300 [thread overview]
Message-ID: <87bqjkblg3.fsf@sw.ru> (raw)
Since mpt-fusion-handle-pci-layer-error-on-resume.patch
function mpt_resume() can return error code.
Signed-off-by: Monakhov Dmitriy <dmonakhov@openvz.org>
---
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
reply other threads:[~2007-02-23 21:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bqjkblg3.fsf@sw.ru \
--to=dmonakhov@openvz.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mpt_linux_developer@lsi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox