From b63ad0882a16a5d28003e57f2b0b81dee3fb322b Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 28 Nov 2000 03:58:46 +0000 Subject: Merge with 2.4.0-test11. --- drivers/scsi/BusLogic.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/scsi/BusLogic.c') diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index 1abc1a8c7..83512a854 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -2793,6 +2793,11 @@ int BusLogic_DetectHostAdapter(SCSI_Host_Template_T *HostTemplate) Register the SCSI Host structure. */ Host = scsi_register(HostTemplate, sizeof(BusLogic_HostAdapter_T)); + if(Host==NULL) + { + release_region(HostAdapter->IO_Address, HostAdapter->AddressCount); + continue; + } HostAdapter = (BusLogic_HostAdapter_T *) Host->hostdata; memcpy(HostAdapter, PrototypeHostAdapter, sizeof(BusLogic_HostAdapter_T)); HostAdapter->SCSI_Host = Host; -- cgit v1.2.3