mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] drivers/cdrom/sjcd.c check_region() fix
@ 2003-12-29 19:57 Omkhar Arasaratnam
  2003-12-30  6:12 ` Gene Heskett
  0 siblings, 1 reply; 4+ messages in thread
From: Omkhar Arasaratnam @ 2003-12-29 19:57 UTC (permalink / raw)
  To: emoenke; +Cc: linux-kernel

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-12-30  7:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-29 19:57 [PATCH] drivers/cdrom/sjcd.c check_region() fix Omkhar Arasaratnam
2003-12-30  6:12 ` Gene Heskett
2003-12-30  6:45   ` Omkhar Arasaratnam
2003-12-30  7:29     ` Gene Heskett

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®