All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] ioremap() / iounmap() balancing problem in scoop_probe() ?
@ 2005-04-10 21:23 Olivier Kaloudoff
  2005-04-11  8:42 ` Domen Puncer
  0 siblings, 1 reply; 2+ messages in thread
From: Olivier Kaloudoff @ 2005-04-10 21:23 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: TEXT/PLAIN, Size: 660 bytes --]

Hi,


 	following the advice of Bertl, I'm trying my first error
report about the scoop device driver for arm, kernel 2.6.11.5;

 	I found that scoop_io_base is only used in scoop.c (once),
so after use, the memory area should be freed;


root@nec:/usr/src/linux/arch/arm/common# diff -Naur scoop.c.orig scoop.c
--- scoop.c.orig        2005-04-10 23:17:06.000000000 +0200
+++ scoop.c     2005-04-10 23:17:28.000000000 +0200
@@ -107,6 +107,7 @@
         scoop_io_base = ioremap(mem->start, 0x1000);
         if (!scoop_io_base)
                 return -ENOMEM;
+       iounmap(scoop_io_base);

         SCOOP_REG(SCOOP_MCR) = 0x0140;


 	Am I right ?


Olivier

[-- 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:[~2005-04-11  8:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-10 21:23 [KJ] ioremap() / iounmap() balancing problem in scoop_probe() ? Olivier Kaloudoff
2005-04-11  8:42 ` Domen Puncer

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.