diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2000-11-28 03:58:46 +0000 |
commit | b63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch) | |
tree | 0a343ce219e2b8b38a5d702d66032c57b83d9720 /drivers/scsi/ini9100u.c | |
parent | a9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff) |
Merge with 2.4.0-test11.
Diffstat (limited to 'drivers/scsi/ini9100u.c')
-rw-r--r-- | drivers/scsi/ini9100u.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/scsi/ini9100u.c b/drivers/scsi/ini9100u.c index fa03acae8..4dc0717c7 100644 --- a/drivers/scsi/ini9100u.c +++ b/drivers/scsi/ini9100u.c @@ -389,6 +389,11 @@ int i91u_detect(Scsi_Host_Template * tpnt) pHCB->HCS_Index = i; /* 7/29/98 */ hreg = scsi_register(tpnt, sizeof(HCS)); + if(hreg == NULL) + { + release_region(pHCB->HCS_Base, 256); + return 0; + } hreg->io_port = pHCB->HCS_Base; hreg->n_io_port = 0xff; hreg->can_queue = tul_num_scb; /* 03/05/98 */ |