summaryrefslogtreecommitdiffstats
path: root/drivers/net/fc/iph5526.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/fc/iph5526.c')
-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++)