patch-2.4.19 linux-2.4.19/drivers/acorn/scsi/ecoscsi.c

Next file: linux-2.4.19/drivers/acpi/acpi_ksyms.c
Previous file: linux-2.4.19/drivers/acorn/scsi/acornscsi.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/drivers/acorn/scsi/ecoscsi.c linux-2.4.19/drivers/acorn/scsi/ecoscsi.c
@@ -125,7 +125,10 @@
     }
 
     NCR5380_init(instance, 0);
-    request_region (instance->io_port, instance->n_io_port, "ecoscsi");
+    if (request_region (instance->io_port, instance->n_io_port, "ecoscsi") == NULL) {
+	scsi_unregister(instance);
+	return 0;
+    }
 
     if (instance->irq != IRQ_NONE)
 	if (request_irq(instance->irq, do_ecoscsi_intr, SA_INTERRUPT, "ecoscsi", NULL)) {

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