public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Trivial Russell <rusty@rustcorp.com.au>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: linux-scsi@vger.kernel.org
Subject: [TRIVIAL] 15) request_region check, 11-20
Date: Wed, 07 Aug 2002 14:23:05 +1000	[thread overview]
Message-ID: <20020807043052.A4CF84BA1@lists.samba.org> (raw)

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

             reply	other threads:[~2002-08-07  4:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-07  4:23 Rusty Trivial Russell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-16 10:49 [TRIVIAL] 15) request_region check, 11-20 Rusty Trivial Russell
2003-02-06  3:22 Rusty Trivial Russell
2003-06-23  7:00 Rusty Trivial Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020807043052.A4CF84BA1@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=linux-scsi@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox