[TRIVIAL] 16) request_region check, 11-20

Rusty Trivial Russell
2003-06-23T06:47:29Z

--- trivial-2.4.22-pre1/drivers/acorn/scsi/oak.c.orig 2003-06-23 16:39:46.000000000 +1000
+++ trivial-2.4.22-pre1/drivers/acorn/scsi/oak.c 2003-06-23 16:39:46.000000000 +1000
@@ -134,7 +134,8 @@
ecard_claim(ecs[count]);

instance->n_io_port = 255;
- request_region (instance->io_port, instance->n_io_port, "Oak SCSI");
+ if (!request_region (instance->io_port, instance->n_io_port, "Oak SCSI"))
+ break;

if (instance->irq != IRQ_NONE)
if (request_irq(instance->irq, do_oakscsi_intr, SA_INTERRUPT, "Oak SCSI", NULL)) {
--
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/