summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mac_scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/mac_scsi.c')
-rw-r--r--drivers/scsi/mac_scsi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/mac_scsi.c b/drivers/scsi/mac_scsi.c
index 54f3f7c39..cbc805e4d 100644
--- a/drivers/scsi/mac_scsi.c
+++ b/drivers/scsi/mac_scsi.c
@@ -258,6 +258,8 @@ int macscsi_detect(Scsi_Host_Template * tpnt)
for (count = 0; count < mac_num_scsi; count++) {
#endif
instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
+ if(instance == NULL)
+ continue;
default_instance = instance;
if (macintosh_config->ident == MAC_MODEL_IIFX) {