* PATCH [1/2] scsi/BusLogic.c:Handle scsi_add_host failure
@ 2006-01-11 9:35 Ashutosh Naik
2006-01-13 18:07 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Ashutosh Naik @ 2006-01-11 9:35 UTC (permalink / raw)
To: linux-scsi, linux-kernel, James.Bottomley, lnz, Andrew Morton
[-- 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++;
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH [1/2] scsi/BusLogic.c:Handle scsi_add_host failure
2006-01-11 9:35 PATCH [1/2] scsi/BusLogic.c:Handle scsi_add_host failure Ashutosh Naik
@ 2006-01-13 18:07 ` Christoph Hellwig
0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2006-01-13 18:07 UTC (permalink / raw)
To: Ashutosh Naik
Cc: linux-scsi, linux-kernel, James. Bottomley @ steeleye. com Andrew Morton
same problem again. seems like all in your series have it..
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-01-13 18:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-11 9:35 PATCH [1/2] scsi/BusLogic.c:Handle scsi_add_host failure Ashutosh Naik
2006-01-13 18:07 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome