]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/mac_scsi.c
Merge tag 'nfs-for-3.14-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
[~andy/linux] / drivers / scsi / mac_scsi.c
index 858075723c87fc2e010f582385126529ac168fff..f5cdc68cd5b6f194f9f1f5e573e1c7747a70bb48 100644 (file)
@@ -260,6 +260,8 @@ int __init macscsi_detect(struct scsi_host_template * tpnt)
     /* Once we support multiple 5380s (e.g. DuoDock) we'll do
        something different here */
     instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata));
+    if (instance == NULL)
+       return 0;
 
     if (macintosh_config->ident == MAC_MODEL_IIFX) {
        mac_scsi_regp  = via1+0x8000;