From: Ashutosh Naik <ashutosh.naik@gmail.com>
To: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
James.Bottomley@steeleye.com, lnz@dandelion.com,
Andrew Morton <akpm@osdl.org>
Subject: PATCH [1/2] scsi/BusLogic.c:Handle scsi_add_host failure
Date: Wed, 11 Jan 2006 15:05:16 +0530 [thread overview]
Message-ID: <81083a450601110135t4f038fbds1bce6d8c9302e89@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
Add scsi_add_host() failure handling for the Linux Driver for BusLogic
MultiMaster and FlashPoint SCSI Host Adapters
Signed-off-by: Ashutosh Naik <ashutosh.naik@gmail.com>
[-- Attachment #2: BusLogic.txt --]
[-- Type: text/plain, Size: 1039 bytes --]
diff -Naurp linux-2.6.15-git6-vanilla/drivers/scsi/BusLogic.c linux-2.6.15-git6/drivers/scsi/BusLogic.c
--- linux-2.6.15-git6-vanilla/drivers/scsi/BusLogic.c 2005-10-28 05:32:08.000000000 +0530
+++ linux-2.6.15-git6/drivers/scsi/BusLogic.c 2006-01-11 14:12:37.000000000 +0530
@@ -2173,7 +2173,7 @@ static int BusLogic_SlaveConfigure(struc
static int __init BusLogic_init(void)
{
- int BusLogicHostAdapterCount = 0, DriverOptionsIndex = 0, ProbeIndex;
+ int BusLogicHostAdapterCount = 0, DriverOptionsIndex = 0, ProbeIndex, retval;
struct BusLogic_HostAdapter *PrototypeHostAdapter;
#ifdef MODULE
@@ -2296,7 +2296,12 @@ static int __init BusLogic_init(void)
scsi_host_put(Host);
} else {
BusLogic_InitializeHostStructure(HostAdapter, Host);
- scsi_add_host(Host, NULL);
+ retval = scsi_add_host(Host, NULL);
+ if (retval) {
+ printk(KERN_WARNING "BusLogic: scsi_add_host failed\n");
+ scsi_host_put(host);
+ return retval;
+ }
scsi_scan_host(Host);
BusLogicHostAdapterCount++;
}
next reply other threads:[~2006-01-11 9:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-11 9:35 Ashutosh Naik [this message]
2006-01-13 18:07 ` Christoph Hellwig
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=81083a450601110135t4f038fbds1bce6d8c9302e89@mail.gmail.com \
--to=ashutosh.naik@gmail.com \
--cc=James.Bottomley@steeleye.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=lnz@dandelion.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
all inboxes | Powered by JetHome®