summaryrefslogtreecommitdiffstats
path: root/drivers/net/fc
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-11-28 03:58:46 +0000
commitb63ad0882a16a5d28003e57f2b0b81dee3fb322b (patch)
tree0a343ce219e2b8b38a5d702d66032c57b83d9720 /drivers/net/fc
parenta9d7bff9a84dba79609a0002e5321b74c4d64c64 (diff)
Merge with 2.4.0-test11.
Diffstat (limited to 'drivers/net/fc')
-rw-r--r--drivers/net/fc/iph5526.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/fc/iph5526.c b/drivers/net/fc/iph5526.c
index 8d4ebe1a3..5cdad9da4 100644
--- a/drivers/net/fc/iph5526.c
+++ b/drivers/net/fc/iph5526.c
@@ -3791,6 +3791,9 @@ struct pci_dev *pdev = NULL;
sprintf(fi->name, "fc%d", count);
host = scsi_register(tmpt, sizeof(struct iph5526_hostdata));
+ if(host==NULL)
+ return no_of_hosts;
+
hostdata = (struct iph5526_hostdata *)host->hostdata;
memset(hostdata, 0 , sizeof(struct iph5526_hostdata));
for (j = 0; j < MAX_SCSI_TARGETS; j++)