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
- Lines: 12
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/drivers/acorn/scsi/ecoscsi.c
- Orig date:
Thu Oct 25 13:53:46 2001
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)