* [Kernel-janitors] [PATCH] request_region() on sound/oss/wavfront.c.
@ 2004-05-22 21:54 Gustavo Franco
2004-05-24 18:44 ` [Kernel-janitors] [PATCH] request_region() on Luiz Fernando N. Capitulino
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Franco @ 2004-05-22 21:54 UTC (permalink / raw)
To: kernel-janitors
Hi list,
[Patch aplied against 2.6.6-bk9 - compiles cleanly. ]
I've added two error checks for request_region() calls on the source
and replaced a check_region() with request_region().The release_region()
calls seems to be ok, but let me known if i'm missing something.
Comments?
Hope that helps,
--
Gustavo Franco
--- sound/oss/wavfront.c.orig 2004-05-22 18:19:03.000000000 -0300
+++ sound/oss/wavfront.c 2004-05-22 18:28:38.000000000 -0300
@@ -2424,7 +2424,7 @@
consumes 16.
*/
- if (check_region (io_base, 16)) {
+ if (!request_region (io_base, 16, "wavefront")) {
printk (KERN_ERR LOGNAME "IO address range 0x%x - 0x%x "
"already in use - ignored\n", dev.base,
dev.base+15);
@@ -2820,10 +2820,18 @@
return -1;
}
- request_region (dev.base+2, 6, "wavefront synth");
+ if(!request_region (dev.base+2, 6, "wavefront synth")) {
+ printk (KERN_ERR LOGNAME "IO address range 0x%x - 0x%x "
+ "already in use\n", dev.base+2,
+ dev.base+7);
+ }
if (dev.has_fx) {
- request_region (dev.base+8, 8, "wavefront fx");
+ if(!request_region (dev.base+8, 8, "wavefront fx")) {
+ printk (KERN_ERR LOGNAME "IO address range 0x%x -"
+ "0x%x already in use\n", dev.base+8,
+ dev.base+15);
+ }
}
if (wavefront_config_midi ()) {
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Kernel-janitors] [PATCH] request_region() on
2004-05-22 21:54 [Kernel-janitors] [PATCH] request_region() on sound/oss/wavfront.c Gustavo Franco
@ 2004-05-24 18:44 ` Luiz Fernando N. Capitulino
0 siblings, 0 replies; 2+ messages in thread
From: Luiz Fernando N. Capitulino @ 2004-05-24 18:44 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 581 bytes --]
Hello Gustavo,
Em Sat, May 22, 2004 at 06:54:57PM -0300, Gustavo Franco escreveu:
| I've added two error checks for request_region() calls on the source
| and replaced a check_region() with request_region().The release_region()
| calls seems to be ok, but let me known if i'm missing something.
|
| Comments?
Just remember OSS is depecrated, and will be removed from the kernel.
It is good to do that work to learn something, but is not so useful.
PS: Well, it removes warnings too. Is also good thing.
--
Luiz Fernando N. Capitulino
<http://www.telecentros.sp.gov.br>
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-24 18:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-22 21:54 [Kernel-janitors] [PATCH] request_region() on sound/oss/wavfront.c Gustavo Franco
2004-05-24 18:44 ` [Kernel-janitors] [PATCH] request_region() on Luiz Fernando N. Capitulino
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.