patch-2.4.0-test11 linux/drivers/scsi/atari_scsi.c

Next file: linux/drivers/scsi/atp870u.c
Previous file: linux/drivers/scsi/aha1740.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test10/linux/drivers/scsi/atari_scsi.c linux/drivers/scsi/atari_scsi.c
@@ -667,6 +667,12 @@
 	}
 #endif
 	instance = scsi_register (host, sizeof (struct NCR5380_hostdata));
+	if(instance == NULL)
+	{
+		atari_stram_free(atari_dma_buffer);
+		atari_dma_buffer = 0;
+		return 0;
+	}
 	atari_scsi_host = instance;
        /* Set irq to 0, to avoid that the mid-level code disables our interrupt
         * during queue_command calls. This is completely unnecessary, and even

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)