* [TRIVIAL] 15) request_region check, 11-20
@ 2002-08-07 4:23 Rusty Trivial Russell
0 siblings, 0 replies; 4+ messages in thread
From: Rusty Trivial Russell @ 2002-08-07 4:23 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-scsi
From: johnpol@2ka.mipt.ru
(Included in 2.5)
here is one more trivial check.
So please test and apply.
Evgeniy Polyakov ( s0mbre )
--- trivial-2.4.20-pre1/drivers/acorn/scsi/cumana_2.c.orig 2002-08-07 10:58:01.000000000 +1000
+++ trivial-2.4.20-pre1/drivers/acorn/scsi/cumana_2.c 2002-08-07 10:58:01.000000000 +1000
@@ -382,8 +382,13 @@
ecs[count]->irq_data = (void *)info->alatch;
ecs[count]->ops = (expansioncard_ops_t *)&cumanascsi_2_ops;
- request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
- 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas");
+ if (!request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
+ 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas")) {
+ scsi_unregister(host);
+ ecard_release(ecs[count]);
+ break;
+ }
+
if (host->irq != NO_IRQ &&
request_irq(host->irq, cumanascsi_2_intr,
--
Don't blame me: the Monkey is driving
^ permalink raw reply [flat|nested] 4+ messages in thread
* [TRIVIAL] 15) request_region check, 11-20
@ 2002-12-16 10:49 Rusty Trivial Russell
0 siblings, 0 replies; 4+ messages in thread
From: Rusty Trivial Russell @ 2002-12-16 10:49 UTC (permalink / raw)
To: linux-scsi, rmk
(Included in 2.5)
From: johnpol@2ka.mipt.ru
here is one more trivial check.
So please test and apply.
Evgeniy Polyakov ( s0mbre )
--- trivial-2.4.21-pre1/drivers/acorn/scsi/cumana_2.c.orig 2002-12-16 17:22:38.000000000 +1100
+++ trivial-2.4.21-pre1/drivers/acorn/scsi/cumana_2.c 2002-12-16 17:22:38.000000000 +1100
@@ -382,8 +382,13 @@
ecs[count]->irq_data = (void *)info->alatch;
ecs[count]->ops = (expansioncard_ops_t *)&cumanascsi_2_ops;
- request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
- 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas");
+ if (!request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
+ 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas")) {
+ scsi_unregister(host);
+ ecard_release(ecs[count]);
+ break;
+ }
+
if (host->irq != NO_IRQ &&
request_irq(host->irq, cumanascsi_2_intr,
--
Don't blame me: the Monkey is driving
File: johnpol@2ka.mipt.ru: 15) request_region check, 11-20
^ permalink raw reply [flat|nested] 4+ messages in thread
* [TRIVIAL] 15) request_region check, 11-20
@ 2003-02-06 3:22 Rusty Trivial Russell
0 siblings, 0 replies; 4+ messages in thread
From: Rusty Trivial Russell @ 2003-02-06 3:22 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-scsi, rmk
(Included in 2.5)
From: johnpol@2ka.mipt.ru
here is one more trivial check.
So please test and apply.
Evgeniy Polyakov ( s0mbre )
--- trivial-2.4.21-pre4/drivers/acorn/scsi/cumana_2.c.orig 2003-02-06 13:53:54.000000000 +1100
+++ trivial-2.4.21-pre4/drivers/acorn/scsi/cumana_2.c 2003-02-06 13:53:54.000000000 +1100
@@ -382,8 +382,13 @@
ecs[count]->irq_data = (void *)info->alatch;
ecs[count]->ops = (expansioncard_ops_t *)&cumanascsi_2_ops;
- request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
- 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas");
+ if (!request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
+ 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas")) {
+ scsi_unregister(host);
+ ecard_release(ecs[count]);
+ break;
+ }
+
if (host->irq != NO_IRQ &&
request_irq(host->irq, cumanascsi_2_intr,
--
Don't blame me: the Monkey is driving
File: johnpol@2ka.mipt.ru: 15) request_region check, 11-20
^ permalink raw reply [flat|nested] 4+ messages in thread
* [TRIVIAL] 15) request_region check, 11-20
@ 2003-06-23 7:00 Rusty Trivial Russell
0 siblings, 0 replies; 4+ messages in thread
From: Rusty Trivial Russell @ 2003-06-23 7:00 UTC (permalink / raw)
To: Marcelo Tosatti; +Cc: linux-scsi, rmk
(Included in 2.5)
From: johnpol@2ka.mipt.ru
here is one more trivial check.
So please test and apply.
Evgeniy Polyakov ( s0mbre )
--- trivial-2.4.22-pre1/drivers/acorn/scsi/cumana_2.c.orig 2003-06-23 16:39:45.000000000 +1000
+++ trivial-2.4.22-pre1/drivers/acorn/scsi/cumana_2.c 2003-06-23 16:39:45.000000000 +1000
@@ -382,8 +382,13 @@
ecs[count]->irq_data = (void *)info->alatch;
ecs[count]->ops = (expansioncard_ops_t *)&cumanascsi_2_ops;
- request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
- 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas");
+ if (!request_region(host->io_port + CUMANASCSI2_FAS216_OFFSET,
+ 16 << CUMANASCSI2_FAS216_SHIFT, "cumanascsi2-fas")) {
+ scsi_unregister(host);
+ ecard_release(ecs[count]);
+ break;
+ }
+
if (host->irq != NO_IRQ &&
request_irq(host->irq, cumanascsi_2_intr,
--
What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
Don't blame me: the Monkey is driving
File: johnpol@2ka.mipt.ru: 15) request_region check, 11-20
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-06-23 6:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-23 7:00 [TRIVIAL] 15) request_region check, 11-20 Rusty Trivial Russell
-- strict thread matches above, loose matches on Subject: below --
2003-02-06 3:22 Rusty Trivial Russell
2002-12-16 10:49 Rusty Trivial Russell
2002-08-07 4:23 Rusty Trivial Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox