mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Gene Heskett <gene.heskett@verizon.net>
To: Omkhar Arasaratnam <omkhar@rogers.com>, emoenke@gwdg.de
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] drivers/cdrom/sjcd.c check_region() fix
Date: Tue, 30 Dec 2003 01:12:00 -0500	[thread overview]
Message-ID: <200312300112.00823.gene.heskett@verizon.net> (raw)
In-Reply-To: <20031229195757.GA26168@omkhar.ibm.com>

On Monday 29 December 2003 14:57, Omkhar Arasaratnam wrote:
>Here is another check_region fix, this time for sjcd.c
>
>--- /usr/src/linux-2.6.0/drivers/cdrom/sjcd.c	2003-12-17
> 21:59:05.000000000 -0500 +++ drivers/cdrom/sjcd.c	2003-12-29
> 14:52:05.000000000 -0500 @@ -1700,12 +1700,13 @@
> 	sprintf(sjcd_disk->disk_name, "sjcd");
> 	sprintf(sjcd_disk->devfs_name, "sjcd");
>
>-	if (check_region(sjcd_base, 4)) {
>+	if (!request_region(sjcd_base, 4,"sjcd")) {
> 		printk
> 		    ("SJCD: Init failed, I/O port (%X) is already in use\n",
> 		     sjcd_base);
> 		goto out2;
> 	}
>+	release_region(sjcd_base,4);
>
> 	/*
> 	 * Check for card. Since we are booting now, we can't use standard

I've got two of those check_region() warnings in advansys.c.

Would it be appropriate to do a similar fix to it?

>-
>To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.


  reply	other threads:[~2003-12-30  6:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-29 19:57 Omkhar Arasaratnam
2003-12-30  6:12 ` Gene Heskett [this message]
2003-12-30  6:45   ` Omkhar Arasaratnam
2003-12-30  7:29     ` Gene Heskett

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=200312300112.00823.gene.heskett@verizon.net \
    --to=gene.heskett@verizon.net \
    --cc=emoenke@gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=omkhar@rogers.com \
    /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

all inboxes | Powered by JetHome®