From b63ad0882a16a5d28003e57f2b0b81dee3fb322b Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 28 Nov 2000 03:58:46 +0000 Subject: Merge with 2.4.0-test11. --- drivers/scsi/sun3_scsi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/scsi/sun3_scsi.c') diff --git a/drivers/scsi/sun3_scsi.c b/drivers/scsi/sun3_scsi.c index 29084c39d..6769009d5 100644 --- a/drivers/scsi/sun3_scsi.c +++ b/drivers/scsi/sun3_scsi.c @@ -250,6 +250,9 @@ int sun3scsi_detect(Scsi_Host_Template * tpnt) #endif instance = scsi_register (tpnt, sizeof(struct NCR5380_hostdata)); + if(instance == NULL) + return 0; + default_instance = instance; instance->io_port = (unsigned long) ioaddr; -- cgit v1.2.3